¹ØÓÚAccess Êý¾Ý¿â - .NET¼¼Êõ / C#
ÎÒÏëдһ¸öµ¥»úͳ¼Æ¹¤×÷Á¿µÄ³ÌÐò£¬µ«Ö§³Ö¶àÕÊ»§Ê¹ÓÃ,·½±ãÐ޸ġ¢²éѯ¡¢Í³¼Æ¡£ËùÒÔÏëÓõ½Access,ÒªÔõô×ö±È½ÏºÃ£¬ÎÒ»¹Ã»ÓÐ×ö¹ý¹ØÓÚÊý¾Ý¿â·½ÃæµÄ³ÌÐò¡£Çë´ó¼Ò¸øÎÒÒ»¸ö˼·°¡!Ö÷ÒªÊÇÊý¾Ý¿âÕâÒ»¿é.
Ê×ÏÈÒª×öºÃÐèÇóµÄ·ÖÎö
¾ÍÊÇÄãҪʵÏÖʲôÑùµÄ¹¦ÄÜ
Òª¶ÔʲôÊý¾Ý½øÐвÙ×÷
¸ù¾ÝÊý¾Ý½¨Á¢ÄãµÄ±í
¶àÓû§£¬¿ØÖÆÔÚÓ¦Óòã
Êý¾Ý¿âÀïÃæ¿ÉÒÔ½¨Á¢Óû§±í£¬²¢¸½¼ÓÓû§È¨ÏÞ±í£¬¶Ôÿ¸öÓû§È¨ÏÞ½øÐÐÉèÖÃ
ÔÚ´úÂëÀïÃæÔò¸ù¾ÝÕâЩȨÏÞ¶Ô²Ù×÷½çÃæ½øÐÐÏÞÖÆ¡£
½¨Á¢¸öoledbÊý¾Ý¿âÁ´½Ó£¬°ÑÊý¾Ý¿â¶Áµ½datasetÀïÖ±½ÓÁ´½Ó¾Í¿ÉÒÔÁË¡£
È¥www.51aspx.com ϸöÏîÄ¿²Î¿¼Ò»Ï °É ºÜ¼òµ¥¡£
public class DataBaseAccess
{
//ÓÃÓÚÁ¬½ÓaccessÊý¾Ý¿â
protected OleDbConnection Connection;
private string connString;
/// <summary>
/// ¹¹Ô캯Êý »ñÈ¡Á¬½Ó×Ö·û´®
/// </summary>
public DataBaseAccess()
{
//ÅäÖÃÎļþÁ¬½Ó×Ö·û´®È¡µÃ
string str = ConfigurationManager.AppSettings["dbAccessConn"].ToString();
this.connString = str;
this.Connection = new OleDbConnection(this.connString);
}
}
ÅäÖÃÎļþÀïдdbAccessConnµÄÁ´½Ó×Ö·û´®
Ïà¹ØÎÊ´ð£º
21cnµÄÓÊÏ䣬ÔÚoutlookÅäÖúó¿ÉÒÔÕý³£ÊÕ·¢Óʼþ£¬¿ÉÊÇÎÒдÔÚC#ÖоͲ»ÐУ¬»»³ÉÆäËüÓÊÏ䣬163ºÜÔç×¢²áµÄ¡£¿ÉÒÔ·¢ËÍ¡£²éÁ˺ܾã¬Ã»ÓÐÕÒµ½ÔÒò£¬Çë¸ßÊÖ°ïæ½â´ð¡£¡£¡£Ð¡µÜ£¬Ð»ÁË¡£¡£´úÂëÈçÏ£º
private void SendMail ......
˼·£ºÒªÓÃc#Éú³ÉÒ»¸ö²¥·Å»úµÄ²¥·ÅÁбíµÄxml£¬ÀýÈ磺
<daty datys='2010-04-05' datye='2010-05-01' > //ÕâÊDz¥·ÅµÄÈÕÆÚ¶Î
<time times='01:12:00' timee='02:30:00'> ......
ÇóÒ»±¾C#Éè¼ÆģʽµÄÊé ,ÎҸоõÎҵĴúÂëÔËÓýӿÚ,ίÍÐ,ÊôÐԵĵط½ºÜÉÙ,¿Ï¶¨ÊÇÎÒµÄÉè¼Æģʽ̫²îÁË ,ÓÐûÓÐÕâ·½Ãæ,´Ó¹úÍâ·Òë¹ýÀ´µÄ,±È½ÏºÃµÄÉè¼ÆģʽµÄÊé,ÍƼöһϰÉ,·Ç³£¸Ðл.
¸ßÈËÃÇ˵ ´úÂëÖع¹µÄÊéºÃЩ,ÄÇÎÒÒª¸Ä¿´ ......
¡°¾²Ì¬·½·¨ºÍ¾²Ì¬±äÁ¿´´½¨ºóʼÖÕʹÓÃͬһ¿éÄڴ棬¶øʹÓÃʵÀýµÄ·½Ê½»á´´½¨¶à¸öÄÚ´æ."
Õâ¾ä»°¶ÔÂð£¿
ÔÚ¶àÏ̺߳ÍÒì²½³ÌÐòÖ´ÐÐʱ£¬Ê¹Óþ²Ì¬·½·¨»á³öÏÖÒì³£Âð£¿
ÀàµÄ¶à¸öʵÀý,Æä´úÂëÔÚÄÚ´æÖÐÒ²Ö»ÊÇÒ»·Ý,ÿ¸öʵÀ ......