************************************ INTERNAL *********************************************************
Consult Support Manager/Technical manager before using this query
Below Queries is Only for 6.5 Update x
1. STOP Replication at HO.
2. Take Backup of RepObjectMapDB
Select * into RepObjectMapDB_Backup from RepObjectMapDB
3. Run Below two Queries at HO
Update RepObjectMapDB set TableType = 0 where UseForInterStore = 1 and TableName like 'trx%'
4. Update CfgEnterprise set UseInterstoreTransaction = 0, ExchangeTransactionDataBetweenStore = 0
5. Now run Below Query at HO and execute result also to generate the replication events for change made on HO database
Select 'exec DataNotification @pSourceType=217, @pSourceKey=' + CONVERT(VARCHAR(100),objectID) + ', @pBatchKey=0, @pOperationType=1, @pUserKey=1'
from
RepObjectMapDB WITH (NOLOCK) Where UseForInterStore = 1 and TableName like 'trx%'
UNION
Select 'exec DataNotification @pSourceType=8, @pSourceKey=' + CONVERT(VARCHAR(100),EnterpriseKey) + ', @pBatchKey=0, @pOperationType=1, @pUserKey=1'
from
CfgEnterprise WITH (NOLOCK)
6. start Replication at HO.
Below Queries is for 6.6 Update Only
--------------------------------------
1. STOP Replication at HO.
2. Take Backup of RepObjectMapDB
Select * into RepObjectMapDB_Backup from RepObjectMapDB
3. Run Below two Queries at HO
Update RepObjectMapDB set TableType = 0 where UseForInterStore = 1 and TableName like 'trx%'
Update CfgEnterprise set UseInterstoreTransaction = 0, ExchangeTransactionDataBetweenStore = 0
4. Now run Below Query at HO and execute result also to generate the replication events for change made on HO database
Declare @Batchkey nvarchar(100)
Set @BatchKey = newid()
Select 'exec DataNotification @pSourceType=217, @pSourceKey=''' + CONVERT(VARCHAR(100),objectID) + ''', @pBatchKey='''+ @BatchKey+''', @pOperationType=1, @pUserKey=''1'''
from
RepObjectMapDB WITH (NOLOCK) Where UseForInterStore = 1 and TableName like 'trx%'
UNION
Select 'exec DataNotification @pSourceType=8, @pSourceKey=''' + CONVERT(VARCHAR(100),EnterpriseKey) + ''', @pBatchKey='''+ @BatchKey+''', @pOperationType=1, @pUserKey=''1'''
from
CfgEnterprise WITH (NOLOCK)
5. start Replication at HO.
6. Close the MC and open again
7. Now to cross Check the changes made, run below queries on HO DB and any one Store DB
select * from RepObjectMapDB where UseForInterStore=1 and TableType=1
select UseInterstoreTransaction,* from CfgEnterprise
Note*:- 1. On store DB run the queries after 5 minutes once turning on the replication service on HO
2. Changes in settings will have effect on the new transactions done onwards and old transactions will go without changes.