SQL Server-user accounts

Source: Internet
Author: User

/*

Author: Jiangong sun

*/

I 've made a web site prototype these days, I 've found there are some useful information to share with you about some usual problems about users.

1/how to create a user and give it rights to access a database

2/once you have correctly created your user, but you can't login with it in SQL Server. You get error 18456.

Then you need to check if the SQL Server is well configured.

These are possible reasons listed by Microsoft:

If you are trying to connect using SQL Server Authentication, verify that SQL server is configured in mixed Authentication mode.
If you are trying to connect using SQL Server Authentication, verify that SQL Server login exists and that you have spelled it properly.
If you are trying to connect using Windows authentication, verify that you are properly logged into the correct domain.
If your error indicates state 1, contact your SQL Server administrator.
If you are trying to connect using your administrator credentials, start you application by using the run as Administrator option. When connected, add your Windows user as an individual login.
If the database engine supports contained databases, confirm that the login was not deleted after migration to a contained database user.

Well the most common correction is you activate SQL Server Authentication.

3/sometimes you want to drop a login, but a job is associated with it.

You have to firstly get all the jobs in your DB. and then delete the job.

I hope this post do help to your daily work! Enjoy coding!

 

Related Article

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.