怎样用语句连接基于windows身份验证模式的SQLServer数据库?
adoconnection1.string:= 'Provider=SQLOLEDB.1;Integrated Security=SSPI;Initial Catalog=ls;Data Source=BLUEBOY; '//这样就可以了
其中: 'Provider=SQLOLEDB.1;为驱动程序
Integrated Security=SSPI;为集中登录模式
Initial Catalog=ls;/要访问的数据名
Data Source=BLUEBOY//SQL Server名或计算机名或计算机的IP
网上找到这编都不行的,而且服务器有密码该加在哪里?我加了两个地方都不行
Integrated Security=SSPI;为集中登录模式 这个是什么来的?
adoconnection1.string:= 'Provider=SQLOLEDB.1;Integrated Security=SSPI;Initial Catalog=ls;Data Source=BLUEBOY; '//这样就可以了
其中: 'Provider=SQLOLEDB.1;为驱动程序
Integrated Security=SSPI;为集中登录模式
Initial Catalog=ls;/要访问的数据名
Data Source=BLUEBOY//SQL Server名或计算机名或计算机的IP
网上找到这编都不行的,而且服务器有密码该加在哪里?我加了两个地方都不行
Integrated Security=SSPI;为集中登录模式 这个是什么来的?
+'Persist Security Info=False;Initial Catalog=master';SQL验证 self.ADOConnection1.ConnectionString:='Provider=SQLOLEDB.1;Password='+self.vg_passwd_sjk
+';Persist Security Info=True;user ID='
+self.vg_usr_sjk+';Initial Catalog=master;Data Source='+Self.vg_sjk;
如果是那最好用:指定用户名和密码的方式登陆; 要是用 windows身份验证模式 的话,难道让所用的计算机的登陆操作员都相同?
就算 计算机的登陆操作员可以相同,那网络设置怎么处理?