strConnection = "Provider=SQLOLEDB.1;Password=administrator;Persist Security Info=True;User ID=sa;Initial Catalog=Northwind;Data Source=127.0.0.1" Data Source=127.0.0.1 连接字符串中写IP地址为这个
运行程序时,需要插网线以显示网络连通吗?
运行程序时,需要插网线以显示网络连通吗?
况且如果是本机,可以不用写IP地址
可以写 "(local)" 或者 "." ,SQL会自动识别!
把网线拔下后照样能连接!
如果是写机器名,应该是不要插网线以显示网络连通吧???