Avatar of SpaceCoastLife
SpaceCoastLife

asked on 

Rename physical filenames of SQL Server 2017 database

I am looking for the correct way to rename physical file names for SQL Server 2017 database.  In 2008 R2 this was so easy to just detach, rename the mdf/ldf files, then reattach and point SSMS to the 'new' mdf/ldf files.  However, in 2017 I cannot figure it out.  I've found different postings when Googling, but they all seem to lead me to a dead end or are too complex for me to understand.  

I would like, for example, to take a database I have attached as Database_1234 - which has physical file names of Database.mdf and Database.ldf - to be renamed to Database_1234.mdf and Database_1234.ldf.

I need the simplest, easiest, non-advanced DB admin way to do this.  Thank you in advance.
DatabasesMicrosoft SQL ServerSQL

Avatar of undefined
Last Comment
SpaceCoastLife
ASKER CERTIFIED SOLUTION
Avatar of Scott Pletcher
Scott Pletcher
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of SpaceCoastLife
SpaceCoastLife

ASKER

Thank you for the very straightforward and easy to follow instructions.  Works like a charm.
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo