From time to time I have a very strange occurrence in regard to = replication, I have an attempt to write a row which already exists in my = replicated database & the ONLY way the row can arrive in this database = is via replication. The replicated database is used for reporting, = therefore, users do not have any other access than Read. If I delete the row on the replicated database, restart the distribution = agent, all is fine & well, the row is written. But what in the world = could be going on? I've been tearing my hair out analyzing this. When a shipment occurs, a row should be written to the = reprint_shipping_tbl_usr for the Bill of Lading, and then the Packing = List, and then the C of A. Notice in the case of 173549 that the Bill = of Lading row is missing (This is the row that is attempted to be = duplicated) Here is the results of a sp_browsereplcmds query (From Hillary's book) {CALL sp_MSins_reprint_shipping_tbl_usr ('173297', '208596', = 2005-08-30 06:20:33.000, 'WWC1', '5138-01', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173297', '208596', = 2005-08-30 06:20:33.000, 'WWC1', '5138-01', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173297', '208596', = 2005-08-30 06:20:33.000, 'WWC1', '5138-01', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173297', '208596', = 2005-08-30 06:20:33.000, 'WWC1', '5138-01', 'C of A Fax')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173563', '208597', = 2005-08-30 07:09:06.000, 'WWC1', '8008-00', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173563', '208597', = 2005-08-30 07:09:06.000, 'WWC1', '8008-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173563', '208597', = 2005-08-30 07:09:06.000, 'WWC1', '8008-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173549', '208598', = 2005-08-30 07:16:09.000, 'WWC1', '4270-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173549', '208598', = 2005-08-30 07:16:09.000, 'WWC1', '4270-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173549', '208598', = 2005-08-30 07:16:09.000, 'WWC1', '4270-00', 'C of A Fax')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('270594', '270615', = 2005-08-30 07:38:30.000, 'W283', 'WWC1', 'WTO Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('270594', '270615', = 2005-08-30 07:38:30.000, 'W283', 'WWC1', 'WTO Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('172019', '208599', = 2005-08-30 07:49:52.000, 'WST1', '5587-01', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('172019', '208599', = 2005-08-30 07:49:52.000, 'WST1', '5587-01', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('172019', '208599', = 2005-08-30 07:49:52.000, 'WST1', '5587-01', 'C of A Fax')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173557', '208600', = 2005-08-30 08:00:26.000, 'WCH1', '3667-00', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173557', '208600', = 2005-08-30 08:00:26.000, 'WCH1', '3667-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173557', '208600', = 2005-08-30 08:00:26.000, 'WCH1', '3667-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173556', '208601', = 2005-08-30 08:02:11.000, 'WCH1', '4517-00', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173556', '208601', = 2005-08-30 08:02:11.000, 'WCH1', '4517-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173556', '208601', = 2005-08-30 08:02:11.000, 'WCH1', '4517-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173001', '208602', = 2005-08-30 08:06:25.000, 'WCH1', '7762-00', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173001', '208602', = 2005-08-30 08:06:25.000, 'WCH1', '7762-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173001', '208602', = 2005-08-30 08:06:25.000, 'WCH1', '7762-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173235', '208603', = 2005-08-30 08:07:12.000, 'WCH1', '1270-06', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173235', '208603', = 2005-08-30 08:07:12.000, 'WCH1', '1270-06', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173235', '208603', = 2005-08-30 08:07:12.000, 'WCH1', '1270-06', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173235', '208603', = 2005-08-30 08:07:12.000, 'WCH1', '1270-06', 'C of A Fax')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173549', '208598', = 2005-08-30 07:16:09.000, 'WWC1', '4270-00', 'Bill of Lading')}=20 The row for the BOL has an entry_time of 08:09, but all the others were = written at 07:16. The row is in the replicated db already, and yet this is how replcmds = looks. I am very confused as to how this could occur & where else to look to = stop this duplicate write attempt from happening & blowing up = replication. Any advice will be GREATLY appreciated!!!!
If the entry time for the last row is later it looks like the log reader = agent took 53 minutes to pick it up. Is it possible that your log reader = agent hiccupped during this time? Is it also possible that the last entry was part of a transaction which = was open for 1 hour?=20 Were you running any dbcc commands in this interval? --=20 Hilary Cotter Looking for a SQL Server replication book? http://www.nwsu.com/0974973602.html Looking for a FAQ on Indexing Services/SQL FTS http://www.indexserverfaq.com [quoted text, click to view] "JLS" <jlshoop@hotmail.com> wrote in message = news:uk25SiXrFHA.3080@TK2MSFTNGP15.phx.gbl...
From time to time I have a very strange occurrence in regard to = replication, I have an attempt to write a row which already exists in my = replicated database & the ONLY way the row can arrive in this database = is via replication. The replicated database is used for reporting, = therefore, users do not have any other access than Read. If I delete the row on the replicated database, restart the = distribution agent, all is fine & well, the row is written. But what in = the world could be going on? I've been tearing my hair out analyzing = this. When a shipment occurs, a row should be written to the = reprint_shipping_tbl_usr for the Bill of Lading, and then the Packing = List, and then the C of A. Notice in the case of 173549 that the Bill = of Lading row is missing (This is the row that is attempted to be = duplicated) Here is the results of a sp_browsereplcmds query (From Hillary's book) {CALL sp_MSins_reprint_shipping_tbl_usr ('173297', '208596', = 2005-08-30 06:20:33.000, 'WWC1', '5138-01', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173297', '208596', = 2005-08-30 06:20:33.000, 'WWC1', '5138-01', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173297', '208596', = 2005-08-30 06:20:33.000, 'WWC1', '5138-01', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173297', '208596', = 2005-08-30 06:20:33.000, 'WWC1', '5138-01', 'C of A Fax')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173563', '208597', = 2005-08-30 07:09:06.000, 'WWC1', '8008-00', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173563', '208597', = 2005-08-30 07:09:06.000, 'WWC1', '8008-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173563', '208597', = 2005-08-30 07:09:06.000, 'WWC1', '8008-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173549', '208598', = 2005-08-30 07:16:09.000, 'WWC1', '4270-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173549', '208598', = 2005-08-30 07:16:09.000, 'WWC1', '4270-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173549', '208598', = 2005-08-30 07:16:09.000, 'WWC1', '4270-00', 'C of A Fax')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('270594', '270615', = 2005-08-30 07:38:30.000, 'W283', 'WWC1', 'WTO Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('270594', '270615', = 2005-08-30 07:38:30.000, 'W283', 'WWC1', 'WTO Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('172019', '208599', = 2005-08-30 07:49:52.000, 'WST1', '5587-01', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('172019', '208599', = 2005-08-30 07:49:52.000, 'WST1', '5587-01', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('172019', '208599', = 2005-08-30 07:49:52.000, 'WST1', '5587-01', 'C of A Fax')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173557', '208600', = 2005-08-30 08:00:26.000, 'WCH1', '3667-00', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173557', '208600', = 2005-08-30 08:00:26.000, 'WCH1', '3667-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173557', '208600', = 2005-08-30 08:00:26.000, 'WCH1', '3667-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173556', '208601', = 2005-08-30 08:02:11.000, 'WCH1', '4517-00', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173556', '208601', = 2005-08-30 08:02:11.000, 'WCH1', '4517-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173556', '208601', = 2005-08-30 08:02:11.000, 'WCH1', '4517-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173001', '208602', = 2005-08-30 08:06:25.000, 'WCH1', '7762-00', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173001', '208602', = 2005-08-30 08:06:25.000, 'WCH1', '7762-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173001', '208602', = 2005-08-30 08:06:25.000, 'WCH1', '7762-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173235', '208603', = 2005-08-30 08:07:12.000, 'WCH1', '1270-06', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173235', '208603', = 2005-08-30 08:07:12.000, 'WCH1', '1270-06', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173235', '208603', = 2005-08-30 08:07:12.000, 'WCH1', '1270-06', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173235', '208603', = 2005-08-30 08:07:12.000, 'WCH1', '1270-06', 'C of A Fax')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173549', '208598', = 2005-08-30 07:16:09.000, 'WWC1', '4270-00', 'Bill of Lading')}=20 The row for the BOL has an entry_time of 08:09, but all the others = were written at 07:16. The row is in the replicated db already, and yet this is how replcmds = looks. I am very confused as to how this could occur & where else to look to = stop this duplicate write attempt from happening & blowing up = replication. Any advice will be GREATLY appreciated!!!!
Log Reader hiccup, how would I determine that? Any suggestions on how = to further troubleshoot? (I actually am using your book to troubleshoot as it is, thanx for those = scripts, they came in rather handy) Transaction open for 1 hour is highly doubtful, the user clicks a button = to do a shipment & the reports are fired seamlessly. If this were the = case it would more than likely be true more often than this error is = occurring. No, I was not running any dbcc commands during this time. [quoted text, click to view] "Hilary Cotter" <hilary.cotter@gmail.com> wrote in message = news:e%23wTXHkrFHA.2008@TK2MSFTNGP10.phx.gbl...
If the entry time for the last row is later it looks like the log = reader agent took 53 minutes to pick it up. Is it possible that your log = reader agent hiccupped during this time? Is it also possible that the last entry was part of a transaction = which was open for 1 hour?=20 Were you running any dbcc commands in this interval? --=20 Hilary Cotter Looking for a SQL Server replication book? http://www.nwsu.com/0974973602.html Looking for a FAQ on Indexing Services/SQL FTS http://www.indexserverfaq.com [quoted text, click to view] "JLS" <jlshoop@hotmail.com> wrote in message = news:uk25SiXrFHA.3080@TK2MSFTNGP15.phx.gbl...
From time to time I have a very strange occurrence in regard to = replication, I have an attempt to write a row which already exists in my = replicated database & the ONLY way the row can arrive in this database = is via replication. The replicated database is used for reporting, = therefore, users do not have any other access than Read. If I delete the row on the replicated database, restart the = distribution agent, all is fine & well, the row is written. But what in = the world could be going on? I've been tearing my hair out analyzing = this. When a shipment occurs, a row should be written to the = reprint_shipping_tbl_usr for the Bill of Lading, and then the Packing = List, and then the C of A. Notice in the case of 173549 that the Bill = of Lading row is missing (This is the row that is attempted to be = duplicated) Here is the results of a sp_browsereplcmds query (From Hillary's = book) {CALL sp_MSins_reprint_shipping_tbl_usr ('173297', '208596', = 2005-08-30 06:20:33.000, 'WWC1', '5138-01', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173297', '208596', = 2005-08-30 06:20:33.000, 'WWC1', '5138-01', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173297', '208596', = 2005-08-30 06:20:33.000, 'WWC1', '5138-01', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173297', '208596', = 2005-08-30 06:20:33.000, 'WWC1', '5138-01', 'C of A Fax')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173563', '208597', = 2005-08-30 07:09:06.000, 'WWC1', '8008-00', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173563', '208597', = 2005-08-30 07:09:06.000, 'WWC1', '8008-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173563', '208597', = 2005-08-30 07:09:06.000, 'WWC1', '8008-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173549', '208598', = 2005-08-30 07:16:09.000, 'WWC1', '4270-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173549', '208598', = 2005-08-30 07:16:09.000, 'WWC1', '4270-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173549', '208598', = 2005-08-30 07:16:09.000, 'WWC1', '4270-00', 'C of A Fax')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('270594', '270615', = 2005-08-30 07:38:30.000, 'W283', 'WWC1', 'WTO Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('270594', '270615', = 2005-08-30 07:38:30.000, 'W283', 'WWC1', 'WTO Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('172019', '208599', = 2005-08-30 07:49:52.000, 'WST1', '5587-01', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('172019', '208599', = 2005-08-30 07:49:52.000, 'WST1', '5587-01', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('172019', '208599', = 2005-08-30 07:49:52.000, 'WST1', '5587-01', 'C of A Fax')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173557', '208600', = 2005-08-30 08:00:26.000, 'WCH1', '3667-00', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173557', '208600', = 2005-08-30 08:00:26.000, 'WCH1', '3667-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173557', '208600', = 2005-08-30 08:00:26.000, 'WCH1', '3667-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173556', '208601', = 2005-08-30 08:02:11.000, 'WCH1', '4517-00', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173556', '208601', = 2005-08-30 08:02:11.000, 'WCH1', '4517-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173556', '208601', = 2005-08-30 08:02:11.000, 'WCH1', '4517-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173001', '208602', = 2005-08-30 08:06:25.000, 'WCH1', '7762-00', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173001', '208602', = 2005-08-30 08:06:25.000, 'WCH1', '7762-00', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173001', '208602', = 2005-08-30 08:06:25.000, 'WCH1', '7762-00', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173235', '208603', = 2005-08-30 08:07:12.000, 'WCH1', '1270-06', 'Bill of Lading')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173235', '208603', = 2005-08-30 08:07:12.000, 'WCH1', '1270-06', 'Packing List')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173235', '208603', = 2005-08-30 08:07:12.000, 'WCH1', '1270-06', 'Cert of Analysis')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173235', '208603', = 2005-08-30 08:07:12.000, 'WCH1', '1270-06', 'C of A Fax')}=20 {CALL sp_MSins_reprint_shipping_tbl_usr ('173549', '208598', = 2005-08-30 07:16:09.000, 'WWC1', '4270-00', 'Bill of Lading')}=20 The row for the BOL has an entry_time of 08:09, but all the others = were written at 07:16. The row is in the replicated db already, and yet this is how = replcmds looks. I am very confused as to how this could occur & where else to look = to stop this duplicate write attempt from happening & blowing up = replication. Any advice will be GREATLY appreciated!!!!
Don't see what you're looking for? Try a search.
|