22,210
社区成员
发帖
与我相关
我的任务
分享
'连接方式一 ODBC 可以正常使用
ConnectStr = "Driver={sql server};server=" & SerName & ";Database=" & DBname & ";UId=" & Uid & ";PWD=" & Pwd
'连接方式二 OLEDB方式 提示错误
ConString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=" & DBname & ";Data Source=" & SerName & ";User ID=" & Uid & ";Password=" & Pwd & ""