Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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.´´½¨¾ßÌåµÄ±í£¬À


Ïà¹ØÎĵµ£º

C#ÀûÓÃwinapi¶¨Î»¿Ø¼þλÖÃËã·¨

public struct RECT
{
      public int left;
      public int Top;
      public int Right;
      public int Bottom;
}
public static bool CenterMouseOn(int hwnd)
{
     ......

c#ÅжÏÒ»¸öÊýÊÇ·ñÊÇËØÊý ·¶Î°Î°

ËØÊýÊÇÖ»Äܱ»1»ò±¾ÉíÕû³ý£¬ÇÒ²»ÄÜΪÆäËûÁ½¸öÕûÊýµÄ³Ë»ý¡£1¡¢2¡¢3±¾Éí¾ÍÊÇËØÊý£¬ÅжÏÒ»¸öÊýÊÇ·ñΪËØÊý£¬Ö»ÐèÒªÓÃÕâ¸öÖµÒÀ´Î³ýÒÔ2µ½ËüµÄ¿ª·½Êý£¬Èç¹ûÆäÖÐÓÐÒ»¸öÊý¿ÉÒÔÕû³ý£¬ÄÇô¸ÃÖµ²»ÎªËØÊý£¬·µÖ®ÎªËØÊý¡£´úÂëÈçÏÂ
publicboolprimeNumber(intn)
{
¡¡¡¡boolb=true;
¡¡¡¡if(n==1||n==2)
¡¡¡¡¡¡¡¡b=true;
¡¡¡¡else
¡¡¡¡{ ......

ADODC¿Ø¼þΪACCESSн¨µÄ¿Õ¿âÌí¼Ó±íµÄ·½·¨

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 ......

asp.net,c#,vb,vbs,js¸÷¸öÓïÑÔµÄÓÊÏä·¢ËÍÔ´´úÂë

·¢ËͶËÒÔ163ΪÀý
Ò»¡¢asp.net°æ   using System.Web.Mail; //ÃüÃû¿Õ¼äÒýÓà
c#
        MailMessage mail = new MailMessage();
        mail.To = "shadow103@qq.com";  //½ÓÊÜÈ˵ÄÓÊÏä
     & ......

»ªÎª£ºAccess¡¢HybridºÍTrunkÈýÖÖģʽµÄÀí½â

¼ò½é£º¡¾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]
Ô ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ