Hi all,I used sp_renamedb to change the name of my database but I'd really like to change the name of the physical files as well. I have searched around quite a bit but I haven't found a way except for detatching and attaching the database but I would really like to avoid this if possible. I have also tried the following script without much luck:ALTER DATABASE myDBMODIFY FILE( NAME = myDBtest, NEWNAME = myDB, FILENAME = N'L:\Instance_2\myDB.mdf')GOMsg 5037, Level 16, State 1, Line 1MODIFY FILE failed. Do not specify physical name.
The current physical filename is "myDBtest.mdf". How can I change the filename??--Lumbago"Real programmers don't document, if it was hard to write it should be hard to understand"