c#ÓïÑÔ²Ù×÷AccessÊý¾Ý¿â
±¾ÎĽ«c#ÓïÑÔ²Ù×÷AccessÊý¾Ý¿âµÄ·½·¨¼ÓÒÔ×ܽᣬÖ÷Òª½â¾öµÄÎÊÌâÈçÏ£º
´´½¨mdb
´´½¨table
¶ÁÈ¡tableÄÚÈÝ
²é
ѯtableÖеÄÄÚÈÝ
ÏòtableÖвåÈëÊý¾Ý
ɾ³ýtableÖеļǼ
ÏòtableÖвåÈëÕÕƬ
¶ÁÈ¡tableÖеÄÕÕƬµÈ¡£
ÎÄ
½éÉÜC#
·ÃÎʲÙ×÷AccessÊý¾Ý¿âµÄ»ù´¡ÖªÊ¶£¬²¢Ìá
¹©Ò»¸öÏà¹ØµÄÀý³Ì¡£C#µÄADO.NET»¹²»ÄÜͨ¹ý±à³Ì·½Ê½´´½¨È«ÐµÄACCESS(MDB)Êý¾Ý¿â£¬ËùÒÔ»¹Ö»ÄÜʹÓÃADOXÕâ¸öÀ´×ÔCOMµÄÁ´½Ó¿âÀ´²Ù
×÷¡£
Ö÷Ҫ֪ʶµãÈçÏ£º
using System.Data.OleDb;
using System.Data;
Á¬½Ó×Ö·û
´®£ºString connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=product.mdb";
½¨Á¢Á¬½Ó£ºOleDbConnection connection = new
OleDbConnection(connectionString);
ʹÓÃOleDbCommandÀàÀ´Ö´ÐÐSqlÓï¾ä£º
OleDbCommand
cmd = new OleDbCommand(sql, connection);
connection.Open();
cmd.ExecuteNonQuery();
1.´´½¨mdb¿â£¬Àý³ÌÈçÏ£º
ÐèҪעÒâµÄÊÇ£º²ÎÊýmdbPathÊÇmdbµÄÍêÕû·¾¶£¨²»°üº¬±íµÄÃû³Æ£©¡£ÀýÈ磺D:\\test.mdb
//´´½¨mdb
public static bool
CreateMDBDataBase(string mdbPath)
{
try
{
ADOX.CatalogClass cat = new ADOX.CatalogClass();
cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + mdbPath +
";");
cat = null;
return true;
}
catch { return false; }
}
2.´´½¨¾ßÌåµÄ±í£¬À
Ïà¹ØÎĵµ£º
public struct RECT
{
public int left;
public int Top;
public int Right;
public int Bottom;
}
public static bool CenterMouseOn(int hwnd)
{
......
ËØÊýÊÇÖ»Äܱ»1»ò±¾ÉíÕû³ý£¬ÇÒ²»ÄÜΪÆäËûÁ½¸öÕûÊýµÄ³Ë»ý¡£1¡¢2¡¢3±¾Éí¾ÍÊÇËØÊý£¬ÅжÏÒ»¸öÊýÊÇ·ñΪËØÊý£¬Ö»ÐèÒªÓÃÕâ¸öÖµÒÀ´Î³ýÒÔ2µ½ËüµÄ¿ª·½Êý£¬Èç¹ûÆäÖÐÓÐÒ»¸öÊý¿ÉÒÔÕû³ý£¬ÄÇô¸ÃÖµ²»ÎªËØÊý£¬·µÖ®ÎªËØÊý¡£´úÂëÈçÏÂ
publicboolprimeNumber(intn)
{
¡¡¡¡boolb=true;
¡¡¡¡if(n==1||n==2)
¡¡¡¡¡¡¡¡b=true;
¡¡¡¡else
¡¡¡¡{ ......
1¡¢Ìí¼ÓADODC1µ½´°Ìå
2¡¢×¼±¸ºÃÒ»¸öACCESSн¨µÄ¿ÕÊý¾Ý¿â66.mdb
Private Sub Form_Load()
With Adodc1
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
"C:\Documents and Settings\Administrator\" & _
"My Docume ......
·¢ËͶËÒÔ163ΪÀý
Ò»¡¢asp.net°æ using System.Web.Mail; //ÃüÃû¿Õ¼äÒýÓÃ
c#
MailMessage mail = new MailMessage();
mail.To = "shadow103@qq.com"; //½ÓÊÜÈ˵ÄÓÊÏä
& ......
¼ò½é£º¡¾IT¶¯Á¦Ô´Ô´´ÎÄÕ¡¿ÈçÓûתÔØ£¬Çë×¢Ã÷Ô´´×÷Õߣ¬¼°ÎÄÕ³ö´¦£¨IT¶¯Á¦Ô´£©¡£Î¥Õߣ¬IT¶¯Á¦Ô´½«±£Áô×·¾¿Æä·¨ÂÉÔðÈεÄȨÀû£¡
À´Ô´£ºIT¶¯Á¦Ô´(ItZero.COM)([url]http://www.itzero.com/)[/url]
×÷ÕߣºÑ©Ñæ
ÔÎÄ£º»ªÎª£ºAccess¡¢HybridºÍTrunkÈýÖÖģʽµÄÀí½â([url]http://tech.itzero.com/2006/1105/3520.html)[/url]
Ô ......