When installing the SQL Server database, select "Windows Authentication Mode" for database operations in. net.

Source: Internet
Author: User
Tags management studio

When the SQL Server database on the server is installed, the "Windows Authentication Mode" is selected. in the. NET database connection string, you cannot use the mode with user logon. the connection string in config can be written as "Data Source = .; initial catalog = Step1; Integrated Security = true ", this wayProgramError:
Database Error. Error cause: Unable to open the requested Database "Step1 ". Logon Failed. User 'nt Authority \ Network service' Login Failed.

Therefore, you must set the permissions of the 'nt Authority \ Network service' user. The specific steps are as follows:
Add the 'nt Authority \ Network service' user to the user of the "Step1" database in the resource manager of SQL Server2000 or management studio of SQL server2005, and tick "db_owner" in "role member.

This will allow normal access.

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.