dbTalk Databases Forums  

which transaction log was applied last?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss which transaction log was applied last? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ultrak The DBA
 
Posts: n/a

Default which transaction log was applied last? - 07-09-2010 , 09:50 AM






I have a database in read-only rollforward mode. What command or where
in SQL server studio can I find the last log applied/restored?

Thank you.

Reply With Quote
  #2  
Old   
Ultrak The DBA
 
Posts: n/a

Default Re: which transaction log was applied last? - 07-09-2010 , 12:18 PM






On Jul 9, 10:50*am, Ultrak The DBA <truthinl... (AT) yahoo (DOT) com> wrote:
Quote:
I have a database in read-only rollforward mode. What command or where
in SQL server studio can I find the last log applied/restored?

Thank you.
I know db2 has a command "db2 rollforward db dbxxxx query status"
that provides this information.

Reply With Quote
  #3  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: which transaction log was applied last? - 07-09-2010 , 02:48 PM



Ultrak The DBA (truthinlife (AT) yahoo (DOT) com) writes:
Quote:
On Jul 9, 10:50*am, Ultrak The DBA <truthinl... (AT) yahoo (DOT) com> wrote:
I have a database in read-only rollforward mode. What command or where
in SQL server studio can I find the last log applied/restored?

I know db2 has a command "db2 rollforward db dbxxxx query status"
that provides this information.
There is not really any equivalent in SQL Server. I guess it is possible
to find out which is the most recent LSN, but for my part I am not sure
what use I would have of that information.

When it comes to such things, it can be deceivious to think in terms
of other products. Because of architectual differences what makes sense
in one product, is not very useful in another.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
  #4  
Old   
Ultrak The DBA
 
Posts: n/a

Default Re: which transaction log was applied last? - 07-09-2010 , 03:51 PM



On Jul 9, 3:48*pm, Erland Sommarskog <esq... (AT) sommarskog (DOT) se> wrote:
Quote:
Ultrak The DBA (truthinl... (AT) yahoo (DOT) com) writes:

On Jul 9, 10:50*am, Ultrak The DBA <truthinl... (AT) yahoo (DOT) com> wrote:
I have a database in read-only rollforward mode. What command or where
in SQL server studio can I find the last log applied/restored?

I know db2 has a command "db2 rollforward db dbxxxx query status"
that provides this information.

There is not really any equivalent in SQL Server. I guess it is possible
to find out which is the most recent LSN, but for my part I am not sure
what use I would have of that information.

When it comes to such things, it can be deceivious to think in terms
of other products. Because of architectual differences what makes sense
in one product, is not very useful in another.

--
Erland Sommarskog, SQL Server MVP, esq... (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008:http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005:http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000:http://www.microsoft.com/sql/prodinf...ons/books.mspx
Yes, but how am I supposed to figure out the next log file to use to
rollforward and keep in read_only, particularly if two disparate dbas
are working on the db.

Reply With Quote
  #5  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: which transaction log was applied last? - 07-09-2010 , 04:58 PM



Ultrak The DBA (truthinlife (AT) yahoo (DOT) com) writes:
Quote:
Yes, but how am I supposed to figure out the next log file to use to
rollforward and keep in read_only, particularly if two disparate dbas
are working on the db.
OK. There are a couple of tables in the msdb database you need to look
at, backupfile, backupfilegroup, backupmediafamily, backupmediaset
and backupset. I have not worked a lot with these, so I cannot give
any exact answer, but they are documented in Books Online.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.