Answers for "sql script to rename database"

SQL
0

sql server rename database

ALTER DATABASE MyTestDatabase MODIFY NAME = MyTestDatabaseCopy ;
Posted by: Guest on January-12-2021
0

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
Posted by: Guest on July-06-2020
0

how to rename a database in tsql

USE master;
GO
ALTER DATABASE AdventureWorks2012
Modify Name = Northwind ;
GO
Posted by: Guest on May-06-2021
0

how to rename a database in tsql

Using t-sql
ALTER DATABASE [Test] MODIFY NAME = [Test2]
Posted by: Guest on May-06-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language