-1
需要将SQL Server 2005与vb6连接。SQL Express连接字符串FOR vb6
我有下面的代码..
我必须要改变的用户名和密码才能打开软件。 但它是在Windows身份验证打开,
公用Sub OpenConn()
If Cn.State = 1 Then Cn.Close
'sql 2000 sql authentication
Cn.ConnectionString = "Provider=sqloledb; Data Source=Guru;Initial Catalog=eIntelliCabs;User Id=w[enter image description here][1]indowsusername;Password=windowsloginpassword;"
'sql 2005 /2008 express windows authetication
'Cn.ConnectionString = "Provider=sqloledb;Data Source=maity;Initial Catalog=eIntelliCabs;User Id=sa;Password=123;"
Cn.CursorLocation = adUseClient
Cn.Open
请帮助我的代码。
非常感谢弗雷德,我已经使用Windows身份验证,并相应地更改为我的电脑。 – phoenixmagento