Mega Code Archive

 
Categories / MSSQL / Database
 

Dbo use

1> --dbo use: 'True' means that only the user ID that created the database has access and can use the database. Any other ID will be refused. 2> 3> CREATE DATABASE myDatabase 4> EXEC sp_dboption 'myDatabase', 'dbo use', 'False' 5> GO 1> 2> Drop database myDatabase 3> GO 1>