About 25,200,000 results
Open links in new tab
  1. SQL Query to Rename Database - GeeksforGeeks

    5 days ago · To change the name of a database in SQL, use the following syntax: SQL Server: ALTER DATABASE [current_database_name] MODIFY NAME = [new_database_name]; …

  2. Rename a database - SQL Server | Microsoft Learn

    Jul 26, 2024 · This article describes how to rename a user-defined database in SQL Server, Azure SQL Database, or Azure SQL Managed Instance, by using SQL Server Management …

  3. How to rename a SQL Server database

    Jan 2, 2025 · Option 1 – Rename SQL Server Database using T-SQL. This command works for SQL Server 2005, 2008, 2008R2, 2012, 2014, 2016, 2017, 2019 and 2022: ALTER …

  4. Changing the name of a SQL database - Stack Overflow

    Jul 19, 2023 · Use SSMS to take the database Offline (right-click on Database, select Tasks, Take Offline), change the name of the files at the OS level and then Bring it Online. You could …

  5. SQL ALTER DATABASE - W3Schools

    The SQL ALTER DATABASE is an essential statement to modify the properties of an existing database in a Relational Database Management System (RDBMS). This tutorial will guide you …

  6. How to Rename a Database in SQL - Baeldung

    Oct 5, 2024 · In SQL Server, we can use the ALTER DATABASE statement to rename a database: ALTER DATABASE [OldDatabaseName] MODIFY NAME = [NewDatabaseName]; …

  7. How to Change Database Name in SQL Server using Query?

    Oct 19, 2023 · To change the database name in SQL Server using a query, you can use the following syntax: Where, ALTER DATABASE: It is the command to change the properties of …

  8. Rename database

    The rename command in SQL typically involves altering the database object's name using the appropriate SQL statement. What is rename command in database? The rename command in …

  9. How to Change a Database Name in SQL Server using T-SQL

    May 26, 2018 · When using SQL Server, if you want to change the name of a database, you can do this by using a GUI (like SSMS) or by using Transact-SQL. If using a GUI, you can right …

  10. SQL Rename Database - Online Tutorials Library

    SQL provides a simple RENAME DATABASE...TO statement to rename an existing database. If you want to rename a database, make sure there is no active transaction in progress …

  11. Some results have been removed
Refresh