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

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 ALTER DATABASE failed

Author  Topic 

X002548
Not Just a Number

15586 Posts

Posted - 2011-04-27 : 15:54:10
ALTER DATABASE [ISRS] MODIFY FILE (NAME=N'ISRS_', NEWNAME=N'ISRS')

Is there a know bug?

I do a back up after this, and the logical file name is no ISR

Or do I have a problem with the server or master or?????

Then I set it back to ISRS_ but when I do


RESTORE FILELISTONLY FROM DISK = N'D:\Backups\NJROS1BBLD0304\DEV2K08\ISRS_2011-04-27_15-36-50.BAK'
GO


And I see the logical file name as ISRS

When I look at Properties I see

ISRS_

When I restore the back up to verify the backup..I HAVE top use ISRS..which works, but I know that's not the logical file name


RESTORE DATABASE ISRS_VERIFY
FROM DISK = N'D:\Backups\NJROS1BBLD0304\DEV2K08\ISRS_2011-04-27_15-36-50.BAK'
WITH MOVE 'ISRS' TO 'D:\Database\NJROS1BBLD0304\SQL2K8\ISRS\ISRS_VERIFY.MDF'
, MOVE 'ISRS_LOG' TO 'D:\Database\NJROS1BBLD0304\SQL2K8\ISRS\ISRS_VERIFY.LDF'
, REPLACE
GO



And no, I have not been drinking at Lunch

Anyone see this before?




Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-04-27 : 16:21:58
This does not sound like a bug. As far as I can tell, you ran the backup after you switched it to ISRS and did not run an additional backup when you switched it back to ISRS_. The backup will contain the logical names of the database at the time of the backup, not at the time you run the verify.

I could be completely misunderstanding you though, your post is a bit confusing.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -