Adding a password to a SQL Server 2005 database

Tags:
Access Database
Microsoft Access
Password management
SQL Server 2005
SQL Server database
We are moving our Microsoft Access database to SQL Server 2005, and the Access database has password protection. How can you add a password to a database in SQL Server 2005?

Answer Wiki

Thanks. We'll let you know when a new response is added.

To create a password-protected database through SQL syntax, specify the database password in the CREATE DATABASE statement. The password must follow the DATABASEPASSWORD keyword and be enclosed in single quotation marks, as in the following example:

CREATE DATABASE databasename DATABASEPASSWORD ‘Password’

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Kevin Beaver
    Sure...it just depends on how your users need to access the system. You can setup standard SQL Server accounts or use Windows authentication. Are you working with a developer or DBA to set this up?
    21,085 pointsBadges:
    report
  • marintur
    data base sql 2005 administration
    10 pointsBadges:
    report
  • Brijesh
    To create a password-protected database through SQL syntax, specify the database password in the CREATE DATABASE statement. The password must follow the DATABASEPASSWORD keyword and be enclosed in single quotation marks, as in the following example:

    CREATE DATABASE databasename DATABASEPASSWORD 'Password'

    14,420 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: