Collections:
Renaming Database Names in SQL Server
How to rename databases in SQL Server?
✍: FYIcenter.com
If don't like the name of a database, you can change it by using the "ALTER DATABASE" statement with the following syntax:
ALTER DATABASE database_name MODIFY NAME = new_database_name
The tutorial example below shows you how change the database name from "FyiCenterData" to "FyiCenterComData":
ALTER DATABASE FyiCenterData MODIFY NAME = FyiCenterComData GO The database name 'FyiCenterComData' has been set.
⇒ Database in Use When Renaming a Database in SQL Server
⇐ Creating Databases with Specified Physical Files in SQL Server
2016-11-24, 1575🔥, 0💬
Popular Posts:
How to download Microsoft SQL Server 2005 Express Edition in SQL Server? Microsoft SQL Server 2005 E...
How To Install Oracle Database 10g XE in Oracle? To install 10g universal edition, double click, Ora...
How To List All User Names in a Database in SQL Server? If you want to see a list of all user names ...
What Happens If the UPDATE Subquery Returns Multiple Rows in MySQL? If a subquery is used in a UPDAT...
How Fixed Length Strings Are Truncated and Padded in SQL Server Transact-SQL? When the length of the...