类型:转载 责任编辑:asp.net 日期:2007/05/23
热门软件下载:
错误信息:用户 (null) 登录失败。原因: 未与信任 SQL Server 连接相关联。
连接字符串:
string strCon = "server=202.XXX.XXX.XXX;User ID=Test; Password=test; initial catalog=tempdb;"
+"database=tempdb;trusted_connection=yes;connect timeout=30";
网友回答:
User=Test
server=202.XXX.XXX.XXX;User=Test; Pwd=test; initial catalog=tempdb;"
string strCon = "server=202.XXX.XXX.XXX;User=Test; Pwd=test; initial catalog=tempdb;"
看看你的登陆方式是集成sql 还是window 登陆
用这个串试试
data source=202.XXX.XXX.XXX;initial catalog=tempdb;password=test;persist security info=True;user id=Test;workstation id=xxx;packet size=4096