I have a fairly simple insert query that continually times out from our application. I've ran the query from SSMS and killed it after 8 minutes when it didn't complete. We are using SQL 2008 Standard with merge replication to about 36 subscribers and one way transactional replication to one subscriber(reporting server).
I have rebuilt all indexes on all related tables including on the merge three primary tables(genhistory, contents, tombstone). There was a trigger on the table used to write to a log table for historical auditing which I've temporarily disabled to remove it from the equation. This did not help any. I have looked for blocks while the query runs and there doesn't appear to be any.
When the query starts running, if I look at the locks for the SPID, it has a total of about 116 locks.
I know this is not much information to go on but can anyone suggest something else to look for as the cause of this. The insert was running fine until a couple of days ago. All other queries appear to be running without issue.
Just as a final thought, Friday at noon I upgraded the database server from SQL 2000 to 2008 but the query performed fine after that until about Tuesday. Merge replication was not taken down for this upgrade. Transactional replication did not gracefully keep running post-upgrade so I had to delete the publication and recreate it. It has been running fine since then.
I don't think the upgrade has anything to do with it but wanted to throw it out there in case it could be affecting it. We've actually seen improvement with most queries post-upgrade except this one.
TIA for any assistance!
J
I have rebuilt all indexes on all related tables including on the merge three primary tables(genhistory, contents, tombstone). There was a trigger on the table used to write to a log table for historical auditing which I've temporarily disabled to remove it from the equation. This did not help any. I have looked for blocks while the query runs and there doesn't appear to be any.
When the query starts running, if I look at the locks for the SPID, it has a total of about 116 locks.
I know this is not much information to go on but can anyone suggest something else to look for as the cause of this. The insert was running fine until a couple of days ago. All other queries appear to be running without issue.
Just as a final thought, Friday at noon I upgraded the database server from SQL 2000 to 2008 but the query performed fine after that until about Tuesday. Merge replication was not taken down for this upgrade. Transactional replication did not gracefully keep running post-upgrade so I had to delete the publication and recreate it. It has been running fine since then.
I don't think the upgrade has anything to do with it but wanted to throw it out there in case it could be affecting it. We've actually seen improvement with most queries post-upgrade except this one.
TIA for any assistance!
J