December 3, 2018 at 3:46 am
Hi,
I'm seeing lots of crash dump files generated (SQL Server 2012) due to this error:
Msg 596, Level 21, State 1, Line 0
Cannot continue the execution because the session is in the kill state.
Msg 0, Level 20, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.
If I run the Select statement that is in that dump, I can reproduce the error in SSMS. When I comment a CONTAINS() filter in the WHERE clause the query runs without issue. And, when I run any query that uses the CONTAINS() function, a crash dump is generated.
How do I fix that CONTAINS() function? this is on a production server with many client databases and all databases are affected. I have a good system databases backup from a couple of days ago so would that reslove it? Not sure where CONTAINS() lives in the system databases.
Thanks in advance.
December 3, 2018 at 5:57 am
SALIM ALI - Monday, December 3, 2018 3:46 AMHi,I'm seeing lots of crash dump files generated (SQL Server 2012) due to this error:
Msg 596, Level 21, State 1, Line 0
Cannot continue the execution because the session is in the kill state.
Msg 0, Level 20, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.
If I run the Select statement that is in that dump, I can reproduce the error in SSMS. When I comment a CONTAINS() filter in the WHERE clause the query runs without issue. And, when I run any query that uses the CONTAINS() function, a crash dump is generated.How do I fix that CONTAINS() function? this is on a production server with many client databases and all databases are affected. I have a good system databases backup from a couple of days ago so would that reslove it? Not sure where CONTAINS() lives in the system databases.
Thanks in advance.
My recommendation would be to call MS Support on this one.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 3, 2018 at 6:01 am
Found the issue and fixed it.
It was a corrupt ResourceDB database. It's not one I had a backup of. I had another server at the same build and the sizes of the mssqlsystemresource.mdf and mssqlsystemresource.ldf files were identical.
I took backups of these, stopped MSSQLSERVER and then copied in the good versions of the files and restarted the service. Tested the queries that generated a dump and they worked as expected.
December 3, 2018 at 7:28 am
SALIM ALI - Monday, December 3, 2018 6:01 AMFound the issue and fixed it.It was a corrupt ResourceDB database. It's not one I had a backup of. I had another server at the same build and the sizes of the mssqlsystemresource.mdf and mssqlsystemresource.ldf files were identical.
I took backups of these, stopped MSSQLSERVER and then copied in the good versions of the files and restarted the service. Tested the queries that generated a dump and they worked as expected.
Outstanding. In that case, you should still call MS Support and tell them the easy fix you came up with, which seems to be much better than "reinstall SQL Server", which is what they probably would have told you. 😀
Your work isn't done yet, though... now you need to find out why the database was corrupt and whether or not you have a disk getting ready to fly south for the winter.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply