Denied SELECT permission on object ' xxx ' (database ' xxx ', schema ' dbo ')

Source: Internet
Author: User
2010-04-17 23:16

This is a problem when testing an ASP. NET Web site in IIS (asp.net+sql2005) My own workaround is this:

1. Open the SQL2005 Management interface (enter from the VS2005 server without installing Sqlserver2005_ssmsee.msi)

2. In the Object Explorer, expand Security under Databases, right-click the login name to pop up new login window, login to the right "search"--"advanced"-"Find Now", select "ASPNET", and successfully add user after two times " ASPNET ", below" default database "Select the database you want to manipulate (assuming the database name is: TTT), OK, ok!

3. Give the ASPNET user permission to query the database. Right-click the database for your database TTT, select "Properties"--point "permissions", and on the "OK" There are many permissions options, select the ones you commonly use, such as SELECT, Update,delete,...... Click "OK" and you're done!

Denied SELECT permission on object ' xxx ' (database ' xxx ', schema ' dbo ')

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.