Version 11.0.7469.6
So if by chance, there was another thread with the same problem a few days back: https://learn.microsoft.com/en-us/answers/questions/1054689/high-availability-insert-fails-on-primary-replica.html. And even more by chance, the SQL version is exactly the same. I suspect the other poster is your colleague. :-)
When we run it on the current active node runs in 11 ms on node with issue times out in ssms after 30 secs and times out in application after the timeout set in the connection string
You cannot set the query timeout in the connection string, only the connection timeout which is something else.
By default, SSMS does not use a timeout in a query window. But you can set one if you wish.
I know the exact statement that causes the issue. It is an insert into a table with a text field, where the text field being inserted is ~ 2.8 MB
But is essentially insert into TableA (DataField) values ('a lot of text in xml format')
This is useful information. Before I dive into speculations of what might be going on, I like to clear a few things out:
- So that INSERT is just an INSERT of a constant value, and there is no subqurey with SELECT?
- Are there any triggers on the table?
- What does DBCC TRACESTATUS report on both nodes?