Renaming Databases I was thinking of using a few other titles, “There and Lock again, A DBA’s holiday”
Mike Rachocki IT Specialist with SGL Carbon Technic, LLC Email: mike.rachocki@sglgroup.com SQL Server DBA Started with SQL Server 6.5 System Administrator Software/Hardware SAP Security Administrator 2nd Level User Support 2 | Introduction
Database Name The name that we can see in the Object explorer window 3 | Terminology
Logical File Name The file name used to reference the physical file in Transact-SQL statements 4 | Terminology
Physical File Name The file name which we can see in the folder structure of windows explorer 5 | Terminology
Logical vs. Physical File Names My favorite beverage in a “Physical” container… …now that’s “Logical” 6 | Terminology
Rename Database 7 | Rename Databsae
Rename Logical File Name 8 | Rename Database
Rename Physical File Name 9 | Rename Database
Demo 10 | Rename Database
Summary Rename database Rename logical file Rename physical file
Questions? Mehta, Ashish Kumar "Best Practice for renaming a SQL Server Database" MSSQL Tips, www.mssqltips.com/sqlservertip/1891/best-practice-for-renaming-a-sql-server-database/ “Different ways to Renaming a SQL Server Database" MyTechMantra, 25 Dec 2012 www.mytechmantra.com/LearnSQLServer/Different-ways-to-Rename-SQL-Server-Database.html “Logical and physical file names of SQL Server data and log files" DBDigger, 10 Dec 2011 www.dbdigger.com/2011/12/logical-and-physical-file-names-of-sql.html 12 | Q/A