Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Mark transaction for Transaction Log

$
0
0

Hi 

We have two databases ,

Database 1 is a source

Database 2 is a Receiver.

In the event of disaster we want to restore these two databases in sync.

To achieve this we would like to use the Mark transaction mechanism using transaction log backup.

Does every single transaction thats been processed between Source and Receiver need to start with  BEGIN TRANSACTIONWITHMARK and end with  COMMITTRANSACTION;like below?

{

BEGINTRANSACTION Name_of_the_marrkWITH MARK

Insert into Table (col1,col2) values(1,2)

COMMITTRANSACTION; GO

}

or

Can I just apply Mark on one table,purely created for this Mark transaction mechanism to work.

Kind Regards,

Chinna




Viewing all articles
Browse latest Browse all 7129

Trending Articles