﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / DB File Extension / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 01:37:09 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: DB File Extension</title><link>http://www.sqlservercentral.com/Forums/Topic1415488-146-1.aspx</link><description>ditto</description><pubDate>Tue, 05 Feb 2013 09:21:55 GMT</pubDate><dc:creator>george sibbald</dc:creator></item><item><title>RE: DB File Extension</title><link>http://www.sqlservercentral.com/Forums/Topic1415488-146-1.aspx</link><description>[quote][b]jayoub1 (2/5/2013)[/b][hr]Thank you very much for the help.  Jeff[/quote]You're welcome.</description><pubDate>Tue, 05 Feb 2013 09:20:15 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: DB File Extension</title><link>http://www.sqlservercentral.com/Forums/Topic1415488-146-1.aspx</link><description>Thank you very much for the help.  Jeff</description><pubDate>Tue, 05 Feb 2013 09:17:09 GMT</pubDate><dc:creator>jayoub1</dc:creator></item><item><title>RE: DB File Extension</title><link>http://www.sqlservercentral.com/Forums/Topic1415488-146-1.aspx</link><description>Yup.  I always did the detach in 2005 after a bad experience.  But yup - the syntax is supported in 2005.  I don't recall the specifics of the bad experience.</description><pubDate>Mon, 04 Feb 2013 15:42:57 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: DB File Extension</title><link>http://www.sqlservercentral.com/Forums/Topic1415488-146-1.aspx</link><description>works from 2005 up Jason.</description><pubDate>Mon, 04 Feb 2013 15:37:16 GMT</pubDate><dc:creator>george sibbald</dc:creator></item><item><title>RE: DB File Extension</title><link>http://www.sqlservercentral.com/Forums/Topic1415488-146-1.aspx</link><description>[quote][b]george sibbald (2/4/2013)[/b][hr]my preferred method would be the alter database commandALTER DATABASE yourdb(    NAME = logicalfilename,    FILENAME = N'c:\t1dat2.mdf'  --for example);then offline the database, actually rename the physical file and online the database again.take a backup first whatever way you do it!(backup\restore with move is in fact another option)[/quote]If this is a SQL 2008 database server, I'd go that route too.</description><pubDate>Mon, 04 Feb 2013 14:37:01 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: DB File Extension</title><link>http://www.sqlservercentral.com/Forums/Topic1415488-146-1.aspx</link><description>my preferred method would be the alter database commandALTER DATABASE yourdb(    NAME = logicalfilename,    FILENAME = N'c:\t1dat2.mdf'  --for example);then offline the database, actually rename the physical file and online the database again.take a backup first whatever way you do it!(backup\restore with move is in fact another option)</description><pubDate>Mon, 04 Feb 2013 14:27:47 GMT</pubDate><dc:creator>george sibbald</dc:creator></item><item><title>RE: DB File Extension</title><link>http://www.sqlservercentral.com/Forums/Topic1415488-146-1.aspx</link><description>You can leave the extension off if you wish.  I wouldn't recommend it but it does work.To rename it, detach perform the file rename and then reattach is what I would do.</description><pubDate>Mon, 04 Feb 2013 14:07:20 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>DB File Extension</title><link>http://www.sqlservercentral.com/Forums/Topic1415488-146-1.aspx</link><description>I noticed that one database file does not have an extension and the type is just File.  I have an M:\ partition and when I look at the database files one just has the name and no .mdf extension.  The file type is File.  There are other .mdf files in the same folder and they are listed with the extension and type is SQL Server Database Primary Data File.  Also in the properties of the database under File Name it just shows the name and no extension.  Please let me know what I should do to correct this.  Not sure if just renaming the file ABSdatabase.mdf will work without the database being detached or something.  If I do rename the file with the extension are there any risksYour help is appreciated</description><pubDate>Mon, 04 Feb 2013 14:04:52 GMT</pubDate><dc:creator>jayoub1</dc:creator></item></channel></rss>