Click here to Skip to main content
15,884,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am Create Database in sql server i want to hide this database because Any user cant not access these database.
Posted

If nobody wants to use this means You can Detach it

That can do right right click on the database in SSMS Tasks->Detach. It might get an error like this Database is used by Another Application or something like that.

So you must take it offline before detach.
That can do like Right click database Task->take Offline. Now you can detach it.


Other wise if you wanna prevent it from using unauthorized person means you can simply implement SQL Server authentication.


Hope this will works for you.
 
Share this answer
 
v3
You can not hide database you want to use. It is clear nonsense. What you need is access control. Start here: http://technet.microsoft.com/en-us/library/bb510418(v=sql.105).aspx[^]
Please note, that administrators on the server machine have full access to all databases residing there.
 
Share this answer
 
Hi,

Check this ...


Hide an Instance of SQL Server Database Engine[^]

Hope this will help you.


Cheers
 
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