有谁知道有ASP+SQL 做网页windows身份验证的数据库连接字符串应该怎样写

来源:百度知道 编辑:UC知道 时间:2024/05/29 09:46:45
有谁知道有ASP+SQL 做网页windows身份验证的数据库连接字符串应该怎样写>?

请写具体点,

使用:Integrated Security=SSPI方式;
如:
strConn = "Provider=SQLOLEDB.1;Persist Security Info=False;Initial Catalog=数据库名;Data Source=IP地址;Integrated Security=SSPI"

<%

set con=server.CreateObject("ADODB.connection")
con.open "Provider=SQLOLEDB.1;password=sa;persist security info=true;user ID=sa;initial catalog=3w;data source=."

%>
ASP的,上面的密码与及数据库名自己改吧!肯定OK!