【发布时间】:2016-01-07 20:19:35
【问题描述】:
我不断收到错误
'无法打开登录请求的数据库“mydb”。登录失败。用户“NT Authority\NETWORK SERVICE”'登录失败
这是我的连接字符串
SqlConnection _connection = new SqlConnection("Data Source='MYSERVER\\SE';Initial Catalog=mydb;Integrated Security=True;MultipleActiveResultSets=True; Trusted_Connection=Yes");
相同的 Web 表单可以本地连接到 Windows 8.1 上的 SQL Server。
这是为什么?
【问题讨论】:
标签: c# sql-server windows-8.1 windows-server-2012 iis-8.5