Core component of SQL Server for storing, processing, and securing data
The issue you are experiencing with SQL Server 2019 CU32, specifically the repeated unexpected shutdowns and access violation errors (c0000005) related to the sqldk.dll module, is indeed concerning. Based on the context provided, this could be linked to known issues in SQL Server 2019, particularly with the SESSION_CONTEXT function and its interaction with parallel execution threads, which may lead to incorrect results or access violations in certain scenarios.
Here are some steps and recommendations that may help address this issue:
- Analyze Dump Files: It is crucial to analyze the generated SQLDump files to identify the root cause of the access violation. This analysis can provide insights into whether the issue is a known bug or if it requires further investigation.
- Known Issues: Review the known issues related to SQL Server 2019 CU32. As of the latest updates, there may be specific bugs that have been documented, and Microsoft may have released hotfixes or workarounds for these issues.
- Hotfixes and Configuration Changes: Check for any available hotfixes or General Distribution Releases (GDR) that address the access violation issue. Sometimes, applying the latest cumulative updates or patches can resolve underlying problems.
- Mitigation Steps: To prevent further service crashes, consider the following:
- Ensure that your SQL Server instance is updated to the latest cumulative update.
- Review and optimize the stored procedures that are causing the crashes, particularly if they involve complex queries or parallel processing.
- Monitor the system for any performance issues that may correlate with the crashes, such as high CPU usage or memory pressure.
- Contact Microsoft Support: Since this is a production issue, it is advisable to contact Microsoft Support directly for assistance. They can provide specific guidance based on the dump analysis and your environment details.
Please ensure that you have collected all relevant logs and dump files before reaching out to support, as this will facilitate a quicker resolution.
References: