Unsolved
This post is more than 5 years old
8 Posts
0
603
March 12th, 2009 12:00
Networker SQL Mod Restore of Database
When restoring a database to another SQL server (Lab machine) only "copy" option can be used. This renames the windows external name ie:
TestDB.mdf , TestDB_log.LDF TO:
TestDB_TestDB_2345.mdf , TestDB_TestDB_log_2345.LDF
HOWEVER, when the database is attached to SQL and listed (through the Mgmt Studio) the original name TestDB shows as the name of the DB.
Our SQL Admin is complaining about this lengthening of the name. I can understand, however as I am not a DB admin I cannot assist with how to change this. When I looked up renaming a DB I find only references to SQL Commands such as ALTER DATABASE, TSQL. When I tested the GUI rename (2005) I found the name within the SQL engine same as original name, (as referred to above).
I have been told by our very knowledgeable EMC 'Health Check' person, "restoring to another 'test server' is a very good practice", (we were doing this prior to our healthcheck anyway). I am hesitant to do a Normal restore to the original server as I want to avoid problems that can accompany that procedure.
Any suggestions from experienced persons much appreciated.
TestDB.mdf , TestDB_log.LDF TO:
TestDB_TestDB_2345.mdf , TestDB_TestDB_log_2345.LDF
HOWEVER, when the database is attached to SQL and listed (through the Mgmt Studio) the original name TestDB shows as the name of the DB.
Our SQL Admin is complaining about this lengthening of the name. I can understand, however as I am not a DB admin I cannot assist with how to change this. When I looked up renaming a DB I find only references to SQL Commands such as ALTER DATABASE, TSQL. When I tested the GUI rename (2005) I found the name within the SQL engine same as original name, (as referred to above).
I have been told by our very knowledgeable EMC 'Health Check' person, "restoring to another 'test server' is a very good practice", (we were doing this prior to our healthcheck anyway). I am hesitant to do a Normal restore to the original server as I want to avoid problems that can accompany that procedure.
Any suggestions from experienced persons much appreciated.
No Events found!



lguinane
1 Rookie
•
116 Posts
0
March 13th, 2009 07:00
curta99
8 Posts
0
March 13th, 2009 09:00
Danne-Murphy
1 Rookie
•
121 Posts
0
March 13th, 2009 12:00
curta99
8 Posts
0
March 13th, 2009 13:00
Does this mean I can detach the database and delete the _log file and then restore the _log only??? or will this corrupt the whole thing?
I don't mind doing it as a 2 step process, just need to know it will play well when completed.