Click here to Skip to main content
16,004,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi i want to set database password in sql server-2005 is ther any way i could achieve this???
Posted

1 solution

Typically you can't put a password on the database itself. The security for any one database is controlled through the login security.

Expand the security and right click on "Logins" and create your user account. Before you click OK to create thh SQL login ID, click on the Mappings link on the left side of the user creation window. Place a check mark by the name of the database you want to allow access to. Don't forget to add the base permission to the user account (that is in the same window pane as the database assignment on the bottom). By default it just allows for reading values in the DB. If this user will be the "Owner" make sure to assign that permission to the account.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900