Quantcast
Channel: SCN: Message List - SAP Replication Server
Viewing all articles
Browse latest Browse all 876

Re: Replicate SELECT reserve_identity within a Stored Procedure in a warm standby setup

$
0
0

Hi Shiva,

 

If you main concern is to get the exact same value in your table "myLog" (or "myKey"), I will not set the store procedure for replicate, but I will set directly the table and let SRS replicate the "identity" value.

 

Doing so, when new IDs are generated, the change in "myLog" will be replicated as well as your other user table (I assume the ID will be used as primary key, or similar, in other user table)

 

In the same way, if you hit some hard shutdown at primary (Active DB) which introduce a gap in IDs, you will have the same gap at replicate (Standby).

 

 

If your concern is to not get gaps in IDs, so, as Mark suggest, you may not use "identity" but your own "logic" to get next ID.

Storing it (this next ID from your own logic) in the same table (but without "identity" column) still set for replicate instead of the store procedure, will generate a change (DML) which will also be replicated at replicate (Standby).

 

 

Regards

Yvan

 

Message was edited by: Yvan LACRAMPE


Viewing all articles
Browse latest Browse all 876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>