Protect SQL Server database

2

I have 2 SQL Server databases in my SQL Server Management Studio.

I would like to put a password in one of them, making it impossible to access it, is it possible?

    
asked by anonymous 04.05.2017 / 21:26

2 answers

5

In the database itself it is not possible. What you can do is change which users have access to the database, remember that the master user (the one defined in the database installation, usually named sa ) will always have access to all banks.

To change users who have access to database , just expand Security and then Users ).

    
04.05.2017 / 21:40
3

You should open Object Explorer do Sql , expand Server, Security -> Logins , there you can add a user, and in User Mapping check the databases you want to allow.

To allow Sql Authentication , right click on the server, at Security check Sql Server and Windows Authentication Mode .

    
04.05.2017 / 21:36