²©Ö÷֮ǰһֱÊÇÁ¬½Ó±¾»úµÄ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