October 26, 2008 at 1:02 pm
I want to change some user database names on COB server, how can i connect to the server using the single user mode and change the database names while the others are connected to the server
October 26, 2008 at 7:34 pm
This is the code snippet I saved. it works on sql 7 (I think should also work with sql 2000). Try it first in your test server
USE master --use master db
GO
EXEC sp_dboption dbSVS, 'Single User', True --set db to single user
EXEC sp_renamedb 'dbSVS', 'dmdbsvs' --change db_name
EXEC sp_dboption dmdbsvs, 'Single User', False --change back db to multiple user
GO
"-=Still Learning=-"
Lester Policarpio
October 27, 2008 at 3:50 am
This may give more clear picture =>
http://www.kodyaz.com/articles/alter-single-user-multi-user-mode.aspx
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy