Home All Groups Group Topic Archive Search About

Expected LSN of a standby DB



Author
19 Jan 2006 8:35 AM
Peter Reid
thanks john, but RESTORE HEADERONLY will give me the LSN range in the backup
file.
I'm after the LSN a standby database is expecting next...



Show quoteHide quote
"John Bell" <jbellnewspo***@hotmail.com> wrote in message
news:AEFF783B-174E-493D-8CB1-83625E9D792F@microsoft.com...
> Hi Peter
>
> RESTORE HEADERONLY will give you the LSN range.
>
> John
>
> "Peter Reid" wrote:
>
>> Is it possible to query the next expected LSN from a DB in
>> recovery/standby?
>>
>> I know that if you try to restore a log backup out of sequence, SQL
>> Server
>> throws error #4326 which will tell you the LSN you just tried to restore
>> and
>> the expected one, but is it possible to get this info without having to
>> attempt a log restore?
>>
>> Thanks

Author
19 Jan 2006 9:13 AM
John Bell
Hi

You may want DBCC DBINFO, this is undocumented

See
http://www.sql-server-performance.com/ac_sql_server_2000_undocumented_dbcc.asp

John

Show quoteHide quote
"Peter Reid" wrote:

> thanks john, but RESTORE HEADERONLY will give me the LSN range in the backup
> file.
> I'm after the LSN a standby database is expecting next...
>
>
>
> "John Bell" <jbellnewspo***@hotmail.com> wrote in message
> news:AEFF783B-174E-493D-8CB1-83625E9D792F@microsoft.com...
> > Hi Peter
> >
> > RESTORE HEADERONLY will give you the LSN range.
> >
> > John
> >
> > "Peter Reid" wrote:
> >
> >> Is it possible to query the next expected LSN from a DB in
> >> recovery/standby?
> >>
> >> I know that if you try to restore a log backup out of sequence, SQL
> >> Server
> >> throws error #4326 which will tell you the LSN you just tried to restore
> >> and
> >> the expected one, but is it possible to get this info without having to
> >> attempt a log restore?
> >>
> >> Thanks
>
>
>
Are all your drivers up to date? click for free checkup

Author
19 Jan 2006 10:59 AM
Amish Shah
Run
DBCC TraceOn(3604)-- to view the result in query analyzer.
DBCC DBInfo(<dbname>)

Regards
Amish

*** Sent via Developersdex http://www.developersdex.com ***

Bookmark and Share