Supply a Valid Database Name in SQL Server. To See Available Databases, Use Sys.Databases Error
Hello everyone. In this article, Supply a valid database name in SQL Server. I will give information about To see available databases, use sys.databases.
In SQL Server, you may encounter such an error in some cases.
You can solve this error by using the code below.
USE master;
ALTER DATABASE Old_Database_Name SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE Old_Database_Name MODIFY NAME = [New_Database_Name];
ALTER DATABASE Old_Database_Name SET MULTI_USER;
Good luck to everyone in business and life.