日期:2014-05-19  浏览次数:20418 次

最后10分谁能领:"server=(local);database=StuInfo;trusted_connection=yes"
"server=(local);database=StuInfo;trusted_connection=yes "
这是我的数据库链接语句。
在vs中能正常打开连接。在通过http://localhost/stu_info/index.aspx这样的方式访问出错。错误提示:
System.Data.SqlClient.SqlException:   用户   'E1751EEA3AA941D\ASPNET '   登录失败。.....
-----------------------------------------------
就是在有数据库连接的地方都出错了。
谢谢大家。

------解决方案--------------------
这样写移值后会访问不了的。 最好用混合验证模式,指用用户名,密码的那种。