The SELECT permission was denied on the object 'Address', database 'CNET_85731', schema 'dbo'

后端 未结 6 1828
夕颜
夕颜 2020-12-29 23:06

I have been working away for the last 7 months on a C# ASP.NET using Visual Studio 2008 and SQL Server 2008.

Today, I was running part of my application which was pr

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-29 23:28

    As problem states, "The SELECT permission was denied on the object 'Address', database 'CNET_85731', schema 'dbo' ".

    I wonder you can quite simply solve this way:

    • Open SQL Server Management studio
    • Navigate to the database 'CNET_85731' >> Security >> Users
    • Right click on the one which you are using in your code
    • And finally, just select 'db_datareader' inside "Database Role membership" section.

    Now, I hope you should not get this error again.

提交回复
热议问题