Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

alter database name script

USE master;  
GO  
ALTER DATABASE MyTestDatabase SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
ALTER DATABASE MyTestDatabase MODIFY NAME = MyTestDatabaseCopy ;
GO  
ALTER DATABASE MyTestDatabaseCopy SET MULTI_USER
GO
 
PREVIOUS NEXT
Tagged: #alter #database #script
ADD COMMENT
Topic
Name
6+9 =