»ª·áÈí¼þ

»¥ÁªÍøÈí¼þ×ÊÔ´¹²Ïí

µ±Ç°Î»ÖãºÊ×Ò³ -> ×ÛºÏƵµÀ -> Õ¾³¤Ö®¼Ò

VBÔ¶³ÌÁ¬½Ósqlserver ·þÎñÆ÷¶ËÅäÖ㬴ò¿ª1433¶Ë¿Ú·½·¨¼°VB´úÂë

²©Ö÷֮ǰһֱÊÇÁ¬½Ó±¾»úµÄsqlserver£¬½ñÌìÔÚ×öÏîÄ¿µÄʱºòÐèÒªÔ¶³ÌÁ¬½Ósqlserver£¬Í»È»¾ÍÍ·´óÁË£¬»¨ÁË2¸öСʱ²Å¸ãºÃ¡£²©Ö÷°ÑÓõ½µÄ×ÊÁÏÔÚÕâÀï×ܽáһϡ£


Èç¹ûÒ»Ö±ÊÇÓÃwindowsÑéÖ¤µÇ¼Êý¾Ý¿âµÄ»°£¬ÒªÐÞ¸ÄsqlseverµÄsaÃÜÂë

http://jingyan.baidu.com/article/3aed632e7a7d8b70108091c7.html


ÒªÔ¶³ÌÁ¬½Ósqlserver£¬Ê×ÏÈÒªÅäÖÃһϷþÎñÆ÷¶ËµÄÊý¾Ý¿â£¬¸ù¾ÝÕâ¸ö²©¿ÍÀ´ÅäÖþͺÃÀ²

http://blog.csdn.net/dhx20022889/article/details/43193567


»¹Òª´ò¿ª·þÎñÆ÷¶ËµÄ1433¶Ë¿Ú£¬¿ÉÒԲο¼Õâ¸ö£¬ÀïÃæµÄ±¾µØ¶Ë¿ÚÌî1433¾ÍºÃÁË

http://jingyan.baidu.com/article/414eccf61250c16b431f0a25.html


×îºóÊÇVBÁ¬½ÓsqlserverµÄ´úÂ룬¶Ë¿ÚºÅĬÈÏΪ1433


Public cn As New ADODB.Connection

With cn

   If .State = adStateOpen Then .Close

   .ConnectionString = "driver=SQL Server;server=·þÎñÆ÷IP,¶Ë¿ÚºÅ;uid=sa;pwd=Êý¾Ý¿âÃÜÂë;database=Êý¾Ý¿âÃû"

   .CommandTimeout = 120

   .Open

End With




ÉÏһƪ£ºÈçºÎ·ÀÖ¹¹Ø¼ü´ÊÅÅÃûϽµ
ÏÂһƪ£ºvbÈçºÎÁ¬½ÓÉÏÔ¶³ÌSQLÊý¾Ý¿â

ÆÀÂÛ

ÕÊ¡¡¡¡ºÅ: ÃÜÂë: (ÐÂÓû§×¢²á)
Ñé Ö¤ Âë:
±í¡¡Çé:
ÄÚ¡¡¡¡ÈÝ:

ËÑË÷
×îÐÂÎÄÕÂ
ͼƬÖ÷Ìâ
ÈÈÃÅÎÄÕÂ
ÍƼöÎÄÕÂ
Ïà¹ØÎÄÕÂ

    Ê× Ò³   |   °æȨÉùÃ÷   |   ¹ØÓÚÎÒÃÇ   |   ¹ã¸æ·þÎñ   |   ÁªÏµÎÒÃÇ   |   ÊÖ»ú°æ    |   ÍøÕ¾µØͼ
    Copyright@zhuchunyu.com all rights reserved
    Powered by zhuchunyu.com 2018-2025 zhuchunyu.com ÍîICP±¸05011767ºÅ-23