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

Windows Mobile Á¬½ÓSQL SERVERÊý¾Ý¿â SqlClient

»·¾³´î½¨£º
   windows MobileµÄ¿ª·¢»·¾³µÄ´î½¨(Ïêϸ˵Ã÷)
²½Öè¸ÅÊö:
1£ºPCÉϵÄSQL
SERVER
ÐèÒª¿ªÆôÔ¶³ÌÁ¬½Ó¡£
2£ºMoblieÄ£ÄâÆ÷ÐèҪͨ¹ýActiveSyncÁ¬½Ó£¬Ê¹ÆäÄܹ»Í¨¹ýPCÁ¬Íø¡£(Èç¹ûÊÇÊÖ»úµÄ»°£¬ÐèÒªÄܹ»Í¨¹ýÎÞÏßÍøÂçÁ¬È뻥ÁªÍø)
Ïêϸ˵Ã÷£º
µÚÒ»²½:SQL SERVERÒ»¶¨Òª¿ªÆôÔ¶³ÌÁ¬½Ó
    1)¿ªÊ¼->ËùÓгÌÐò->Microsoft SQL Server 2005->ÅäÖù¤¾ß->SQL Server ÍâΧӦÓÃÅäÖÃÆ÷
    2)ÔÚ"SQL Server 2005 ÍâΧӦÓÃÅäÖÃÆ÷"Ò³, µ¥»÷"·þÎñºÍÁ¬½ÓµÄÍâΧӦÓÃÅäÖÃÆ÷”
    3)È»ºóµ¥»÷Õ¹¿ª“Êý¾Ý¿âÒýÇæ",Õ¹¿ªSQLEXPRESS Ñ¡Ôñ"Ô¶³ÌÁ¬½Ó",ÔÚÓÒ±ßÑ¡ÖÐ"±¾µØÁ¬½ÓºÍÔ¶³ÌÁ¬½Ó"ÔÚÑ¡Ôñ"½öʹÓÃTCP/IP"
    4)È»ºóµ¥»÷Ó¦Óð´Å¥ÉÔµÈÒ»»á³öÏÖ"Ö±µ½ÖØÐÂÆô¶¯Êý¾Ý¿âÒýÇæ·þÎñºó£¬¶ÔÁ¬½ÓÉèÖÃËù×öµÄ¸ü¸Ä²Å»áÉúЧ"¶Ô»°¿ò.µ¥»÷È·¶¨
    5)Ñ¡ÔñSQLEXPRESS ÖеÄ"·þÎñ" Ñ¡ÔñÓÒ±ß"Í£Ö¹"°´Å¥,×îºóÖØÐÂÆô¶¯·þÎñ һ·ȷ¶¨.
µÚ¶þ²½:ʹwindows MobileÄ£ÄâÆ÷ͨ¹ýPCÉÏÍø
    1)VS 2008->¹¤¾ß->·ÂÕæÉ豸¹ÜÀíÆ÷
    2£©´ò¿ªºó¼´¿É¿´µ½Ä£ÄâÆ÷£¬Ñ¡ÔñÄãҪģÄâµÄÉ豸£¬ÓÒ¼üµ¥»÷£¬ÔÙµã»÷ Á¬½Ó£¬È»ºó´ò¿ªActiveSync,
    3)ÅäÖÃÍê³Éºó ÔÚÉ豸ģÄâÆ÷ÖÐÑ¡ÔñÄãÄ£ÄâµÄÉ豸£¬ÓÒ¼üµ¥»÷ºóÑ¡Ôñ ²åÈëµ××ù£¬ÕâʱÄãµÄÄ£ÄâÆ÷¼´¿ÉÉÏÍø
 //Ìí¼ÓÃüÃû¿Õ¼ä
using
System.Data.SqlClient;
//×¢ÒâÕâÀïÓõIJ»ÊÇSqlServerCe;ÏÂÃæµÄÒ²ÊÇÓõÄAdo.netµÄPC°æ£¬²»ÊÇCe°æ¡£
private
void ConnetToSQLTest()
{
//Data Source:IP+¶Ë¿ÚºÅ ¶Ë¿ÚÒ»¶¨ÒªÐ´,ÖмäÓöººÅ
string
connectionString = "Data Source=192.168.1.101,1433;Initial Catalog=wjnTest;User
Id=sa;Password=123";
using (SqlConnection ceconn = new
SqlConnection(connectionString))
{
ceconn.Open();
SqlCommand cmd = new
SqlCommand("insert into Users(username,passwd)values('test','123')",
ceconn);
int fl = cmd.ExecuteNonQuery();
if (fl >
0)
{
MessageBox.Show("²åÈë³É¹¦ ");
}
ceconn.Close();
}
}


Ïà¹ØÎĵµ£º

º½¿Õ¹«Ë¾¹ÜÀíϵͳ(VC++ ÓëSQL 2005)

ϵͳ»·¾³£ºWindows 7
Èí¼þ»·¾³£ºVisual C++ 2008 SP1 +SQL Server 2005
±¾´ÎÄ¿µÄ£º±àдһ¸öº½¿Õ¹ÜÀíϵͳ
      ÕâÊÇÊý¾Ý¿â¿Î³ÌÉè¼ÆµÄ³É¹û£¬ËäÈ»³É¼¨²»¼Ñ£¬µ«ÊÇ×÷ΪÎÒÓÃVC++ ÒÔÀ´±àдµÄ×î´ó³ÌÐò»¹ÊÇ´«µ½ÍøÉÏ£¬ÒÔ¹©²Î¿¼¡£ÓÃVC++ ×öÊý¾Ý¿âÉè¼Æ²¢²»ÈÝÒ×£¬µ«Ò²²»ÊDz»¿ÉÄÜ¡£ÒÔÏÂÊÇÎҵijÌÐò½çÃ棬ºóÃæ ......

ʲôÊÇ SQL Developer£¿

Oracle SQL Developer ÊÇÒ»¸öÃâ·ÑµÄͼÐλ¯Êý¾Ý¿â¿ª·¢¹¤¾ß¡£Ê¹Óà SQL Developer£¬Äú¿ÉÒÔä¯ÀÀÊý¾Ý¿â¶ÔÏó¡¢ÔËÐÐ SQL Óï¾äºÍ SQL ½Å±¾£¬²¢ÇÒ»¹¿ÉÒԱ༭ºÍµ÷ÊÔ PL/SQL Óï¾ä¡£Äú»¹¿ÉÒÔÔËÐÐËùÌṩµÄÈκÎÊýÁ¿µÄ±¨±í£¬ÒÔ¼°´´½¨ºÍ±£´æÄú×Ô¼ºµÄ±¨±í¡£SQL Developer ¿ÉÒÔÌá¸ß¹¤×÷ЧÂʲ¢¼ò»¯Êý¾Ý¿â¿ª·¢ÈÎÎñ¡£
SQL Developer ¿ÉÒÔÁ¬½Óµ½È ......

ADOµÄSQLÓï¾äÖеġ°*¡±ºÍ¡°?¡±

ÓÉÓÚVBAÖдú±íµ¥¸öºÍ¶à¸ö×Ö·ûÊÇÓá°?¡±ºÍ¡°*¡±´ú±íµÄ£¬ËùÒÔÐí¶à¸ÕѧADOµÄÅóÓѾ­³£»áÎÊ£ºÎªÊ²Ã´ÔÚSQLÓï¾äÖÐÕâÁ½¸ö·ûºÅ²»ÄÜÓÃÄØ£¿Ó¦¸ÃÓÃʲô·ûºÅÀ´´ú±íÄØ£¿ ÕâÊÇÒòΪVBA+ADOËùÓõÄÇý¶¯µÄ¹Øϵ£¬±¾È˶ÔÕâ¸öÒ²²»ÊÇÌ«¾«£¬¾ßÌå´ó¼Ò¿ÉÒÔȥ΢ÈíµÄÍøÕ¾ÉÏÕÒÕҴ𰸣¬ËùÒÔVBA+ADOµÄSQLÓï¾äÖеġ°*¡±ºÍ¡°?¡±ÕâÁ½¸ö·ûºÅÊÇÓá°%¡±ºÍ¡°_¡±£¬ ......

SQL JOINÖ®ÍêÈ«Ó÷¨

×î½üÔÚ×ömysqlµÄÐÔÄÜÓÇ»¯£¬×öµ½¶à±íÁ¬½Ó²éѯ£¬±È½ÏÍ·ÌÛ£¬¿´ÁËһЩjoinµÄ×ÊÁÏ£¬ÖÕÓڸ㶨£¬ÕâÀï·ÖÏí³öÀ´£¡
ÍâÁª½Ó¡£ÍâÁª½Ó¿ÉÒÔÊÇ×óÏòÍâÁª½Ó¡¢ÓÒÏòÍâÁª½Ó»òÍêÕûÍⲿÁª½Ó¡£    
  ÔÚ   from   ×Ó¾äÖÐÖ¸¶¨ÍâÁª½Óʱ£¬¿ÉÒÔÓÉÏÂÁм¸×é¹Ø¼ü×ÖÖеÄÒ»×éÖ¸¶¨£º  
 &n ......

Visual Basic 6.0 Óë SQL Server µÄÁ½ÖÖÁ¬½Ó

VBͨ¹ýADOÁ¬½ÓSQL ServerÊý¾Ý¿â¿ÉÒÔ·ÖΪÓÐÔ´Êý¾Ý¿âÁ¬½ÓºÍÎÞÔ´Êý¾Ý¿âÁ¬½Ó£¬Çø±ðËüÃÇ¿´ÊÇ·ñʹÓÃÁËDSN£¨Êý¾ÝÔ´Ãû³Æ£©À´¾ö¶¨¡£
1   ÎÞÔ´Êý¾Ý¿âÁ¬½Ó
Æäʵ£¬“ÎÞÔ´Êý¾Ý¿â”Á¬½ÓÒ²²¢²»ÊÇ˵²»ÐèÒªÊý¾ÝÔ´£¬Èç¹ûûÓÐÊý¾ÝÔ´ÔòÁ¬½ÓÊÇÖ½ÉÏ̸±ø£¬Ö»ÊDz»ÐèÒªÅäÖÃODBCÊý¾ÝÔ´£¬ÀûÓÃADO¾Í¿Éͨ¹ý´úÂë½øÐÐÁ¬½Ó¡£
1.1 ADO ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ