(windows身份验证模式)vb6中的连接字符串
我正在使用此连接字符串进行服务器身份验证(windows身份验证模式)vb6中的连接字符串,vb6,Vb6,我正在使用此连接字符串进行服务器身份验证 Dim rs As New ADODB.Recordset strConnectionString = "Provider=SQLOLEDB.1;Persyst Security Info=False;User Id=fileade;Password=fileade;Initial Catalog=Fileade;Data Source=10.237.225.170;Command Properties='Command Time Out=45'"
Dim rs As New ADODB.Recordset
strConnectionString = "Provider=SQLOLEDB.1;Persyst Security Info=False;User Id=fileade;Password=fileade;Initial Catalog=Fileade;Data Source=10.237.225.170;Command Properties='Command Time Out=45'"
windows身份验证中的连接字符串是什么 以下是完整的字符串:
Provider=SQLOLEDB.1;Integrated Security=True;Initial Catalog=Fileade;Data Source=10.237.225.170;Persyst Security Info=False;Command Properties='Command Time Out=45'"
我通常使用Excel为我创建连接字符串。只要尝试使用所需的选项连接到服务器,data connection属性就会有连接字符串 我认为您必须将集成安全设置为SSPI 下面是一个对我有用的字符串,我根据您的情况对其进行了修改:
strConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Initial Catalog=Fileade;Data Source=10.237.225.170"
希望这能有所帮助。
Persyst安全信息
--这应该是持久化
而不是Persyst
?
strConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Initial Catalog=Fileade;Data Source=10.237.225.170"