我有代码在连接字符串中包含驱动程序。将连接字符串中的驱动程序更改为VB.Net中的数据源
dim s as string = "Driver={SQL Server};
Server=xxx\SQLEXPRESS;
Database=dbRegister;
Trusted_Connection =是”
我需要更改到:
data source=1.2.3.4;
user id=xx;
password=xxxxx;
initial catalog=xxxxx;
连接超时= 30"
当我刚刚更改的文本,它给出了这样的错误:
[Microsoft][ODBC Driver Manager] Data source name not found and
no default driver specified
我如何声明数据源?
好奇,改变这个的动机是什么? – JonathanK 2010-01-25 18:08:16