Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Password Protect my SQL Server Database?

Tags:

sql-server

I want to deploy my SQL Server 2008 Database with application on the client's machine, where i don't want that anybody can open and read or copy my Database Objects (i.e. Tables, SPs, Functions, Views etc.). I want to protect database with password same like Microsoft Access 2007 When somebody opens it asks Password. Can it be done in SQL Server 2008, if yes how.?

like image 682
Malik Avatar asked May 05 '26 21:05

Malik


1 Answers

SQL Server is not like Access and doesn't have any file-based password-protection mechanisms (in the "normal" editions like Web, Standard, Enterprise/Developer, Express).

SQL Server is a server-based product - you need to restrict physical access to the server the files are located on, and prevent unauthorized users from accessing the files through the SQL Server mechanisms (like logins and permissions).

If you need something like Access' password-protected files, you need to use SQL Server Compact Edition which is file-based and has a password-protect feature

like image 129
marc_s Avatar answered May 09 '26 02:05

marc_s



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!