我有一个数据库“样本”。Active Directory (AD) 中有一个名为“CORPHQ\King”的用户。我已按照以下步骤操作:
1) Go to SQL Server Management Studio (2005) and "Security -> Logins".
2) Right Click -> New Login
3) Login Name : CORPHQ\King
4) Selected "Windows Authentication"
5) Default database - "Sample".
6) Under "User Mapping" section, Selected the "Sample" database, User as "CORPHQ\King" and selected "dbo" as default schema.
7) Selected "db_owner" as "Database role membership for - Sample".
现在在 ASP.NET 应用程序的 WEB.CONFIG 中,我确实有:
<connectionStrings>
<add name="DB" connectionString="Data Source=128.127.126.25; database=Sample; user=corphq\King; password=XXXXXXXXXXX; Integrated Security=SSPI;" providerName="System.Data.SqlClient"/>
</connectionStrings>
现在,当我运行 ASP.NET 应用程序时,我收到了提到的错误:
Error:
The SELECT permission was denied on the object 'tbl_Student', database 'Sample', schema 'dbo'
我认为用户“CORPHQ\King”拥有“db_owner”对“Sample”数据库的访问权限。我对么 ?我在哪里失踪?
谢谢