简体   繁体   中英

sql server login windows authentication

I am new to sql server express and i installed sql server express 2008 R2 with windows authentication as an administrator of the machine.

My objective is to create a database, run some scripts to create tables and data and connect to this database from an asp application.

I created a new database abc with owner as default. I create a new login and lets call it bob with sql server authentication.(am i doing it right?) Here i chose default database for that login as abc THen i created a new user (same name bob) within the folder of my database and mapped to the existing login bob.

Is what i am doing right???

when i try to connect through sql server management studio with sql server authentication and entered the username and password for the user bob, i get an error saying that i cant connect. please clarify what steps i am missing.

Thanks.

As I understand your question, your server uses Windows authentification, but you are trying to connect using SQL Server autentification. If you need to connect using SQL Server authentication, you need to turn it on. In SQL Server Management Studio (SSMS), select this instance, select Properties, and then on Security tab check the "SQL Server and Windows Authentication mode". After that you need to restart the SQL Server service (using SSMS or Services from Administrative Tools).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM