【发布时间】:2010-01-25 17:51:54
【问题描述】:
我的代码在连接字符串中包含驱动程序。
dim s as string = "Driver={SQL Server};
Server=xxx\SQLEXPRESS;
Database=dbRegister;
Trusted_Connection=yes"
我需要将其更改为:
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
如何声明数据源?
【问题讨论】:
-
很好奇,改变这个的动机是什么?
标签: asp.net vb.net connection-string driver