Home
Articles
Forums
FAQ's
Tips
Training
Blogs
Software
Books
About Us
RSS Feeds
Sign in
|
Join
SQL Server Performance
»
SQL Server 7.0 and 2000 Forum Topics
»
General DBA Questions
»
Changing DB logical filename
Changing DB logical filename
Last post 05-13-2004 9:35 AM by
Raulie
. 4 replies.
Page 1 of 1 (5 items)
Active Topics
My Discussions
Unanswered
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
05-12-2004 3:40 PM
eklpublic
Joined on 05-12-2003
USA
Posts
62
Changing DB logical filename
Reply
Contact
I restore .bak to different server with new dbname in EM but it kept the old logical filename. How can I update the logical filename to new name?
05-12-2004 3:55 PM
In reply to
Raulie
Joined on 12-18-2003
Mexico
Posts
571
Re: Changing DB logical filename
Reply
Contact
ALTER DATABASE DatabaseName
MODIFY FILE (NAME = logical_file_name, NEWNAME = new_logical_name)
Raulie
05-12-2004 3:58 PM
In reply to
Raulie
Joined on 12-18-2003
Mexico
Posts
571
Re: Changing DB logical filename
Reply
Contact
By the way if you are going to perform other modifications to the database useing ALTER DATBASE, it is recommended you use multiple ALTER DATABASE statments for optimal performance.
Raulie
05-13-2004 2:05 AM
In reply to
Argyle
Joined on 12-10-2002
Sweden
Posts
1,163
Re: Changing DB logical filename
Reply
Contact
Note that the Alter Database statment only work on SQL 2000. There is no supported way to change logical filename in SQL 7 and below. Having different logical filename on a database doesn't impact functionality.
05-13-2004 9:35 AM
In reply to
Raulie
Joined on 12-18-2003
Mexico
Posts
571
Re: Changing DB logical filename
Reply
Contact
True but it could confuse some one, so if you are running 2000 I would go ahead and change the file name as well it wont hurt.
Raulie
Page 1 of 1 (5 items)
Active Topics
  
My Discussions
  
Unanswered Posts
© 2010 Jude O'Kelly All Rights Reserved.