Hello
I am trying to identify which transaction logs are not correct to use.
The BAK & 100s of TRN files are delivered on an external hard drive and restored here.
The following works...
How can I get the result set of #x to include the physical file name? I want "NJNEW_20110601204503.trn" in the result set.
So the results would look like this...
PhysicalFileName J:\DCF_TLOG\NJNEW_20110601204503.trn
BeginsLogChain 0
FirstLSN 8432383000019020400001
LastLSN 8432383000019145000001
CheckpointLSN 8432383000017737300001
DatabaseBackupLSN 8366423000000630700043
Thanks in advance
Dave
I am trying to identify which transaction logs are not correct to use.
The BAK & 100s of TRN files are delivered on an external hard drive and restored here.
The following works...
Code:
if object_ID('tempdb..#x') is not null begin drop table #x end
create table #x (BackupName varchar(1000),
BackupDescription varchar(1000),
BackupType int,
ExpirationDate datetime ...this is part of the table definition
INSERT INTO #x
EXEC('RESTORE HEADERONLY FROM disk =N''J:\DCF_TLOG\NJNEW_20110601204503.trn''')
How can I get the result set of #x to include the physical file name? I want "NJNEW_20110601204503.trn" in the result set.
So the results would look like this...
PhysicalFileName J:\DCF_TLOG\NJNEW_20110601204503.trn
BeginsLogChain 0
FirstLSN 8432383000019020400001
LastLSN 8432383000019145000001
CheckpointLSN 8432383000017737300001
DatabaseBackupLSN 8366423000000630700043
Thanks in advance
Dave