OK ... here we go
Had a DB named "DB1". Detached DB1, renamed the MDF and LDF to DB1_DataOld.mdf and DB1_Logold.ldf.
Created a new "fresh" copy of DB1. Of course we now have DB1_Data.mdf and DB1_Log.ldf created as expected.
I would like to now "ReAttach" the old DB1 data and log files and rename the database to be DB_Old.
So here is my reattach command:
EXEC sp_attach_db @dbname = N'DB_Old',
@filename1 = N'D:\database\Data\DB1_DataOld.mdf',
@filename2 = N'D:\database\Data\DB1_LogOld.ldf'
I am receiving the error message of :
Server: Msg 9003, Level 20, State 4, Line 1
The LSN (764612:170:1) passed to log scan in database 'DB_Old' is invalid.
Connection Broken
Is there any way to accomplish this?
Thanks
J. Kusch
Had a DB named "DB1". Detached DB1, renamed the MDF and LDF to DB1_DataOld.mdf and DB1_Logold.ldf.
Created a new "fresh" copy of DB1. Of course we now have DB1_Data.mdf and DB1_Log.ldf created as expected.
I would like to now "ReAttach" the old DB1 data and log files and rename the database to be DB_Old.
So here is my reattach command:
EXEC sp_attach_db @dbname = N'DB_Old',
@filename1 = N'D:\database\Data\DB1_DataOld.mdf',
@filename2 = N'D:\database\Data\DB1_LogOld.ldf'
I am receiving the error message of :
Server: Msg 9003, Level 20, State 4, Line 1
The LSN (764612:170:1) passed to log scan in database 'DB_Old' is invalid.
Connection Broken
Is there any way to accomplish this?
Thanks
J. Kusch