参见:

  [1] http://www.cnblogs.com/yjmyzz/archive/2009/10/26/1590033.html

  [2] http://blogs.msdn.com/b/sqlexpress/archive/2011/12/09/using-localdb-with-full-iis-part-2-instance-ownership.aspx

  [3] http://stackoverflow.com/questions/7698286/login-failed-for-user-iis-apppool-asp-net-v4-0

 

在当前 LocalDB 数据库执行下面的代码:

create login [NT AUTHORITY\SYSTEM] from windows;
exec sp_addsrvrolemember N'NT AUTHORITY\SYSTEM', sysadmin

-- NT AUTHORITY\SYSTEM 这块内容根据实际情况修改即可。

 

相关文章:

  • 2021-04-20
  • 2021-10-19
  • 2021-10-27
  • 2021-07-15
  • 2021-09-12
  • 2021-08-06
  • 2021-11-08
  • 2021-12-04
猜你喜欢
  • 2021-06-30
  • 2022-01-29
  • 2021-10-09
  • 2021-10-17
  • 2022-12-23
  • 2021-09-15
  • 2021-08-10
相关资源
相似解决方案