Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 SQL Datafile Rename and format change
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

21 Posts

Posted - 07/22/2013 :  09:38:20  Show Profile  Reply with Quote
we have installed SQL server 2008 and Restored previous Databases into new Databases. When we restored it to new database 2 Files created for every database 1 is mdf and 2nd one is ldf .

for 2 database when we restored it did not stored in the mdf format it was saved in Database name . can we rename this file



James K
Flowing Fount of Yak Knowledge

3873 Posts

Posted - 07/22/2013 :  10:03:03  Show Profile  Reply with Quote
The mdf and ldf extensions are extensions for primary data file and log file respectively by convention; they are not mandatory. So even if you did not rename your files there will be no issues. However, if you do want to rename them for consistency (which is a good idea), do what I suggested in your other question here:

You should follow that procedure exactly - don't simply rename the file without doing the other things. Also, test it in an environment before you do it for real.

Edited by - James K on 07/22/2013 10:03:53
Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 07/22/2013 :  10:16:37  Show Profile  Reply with Quote
you can rename it.


SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000