Possible bug in SQL Server 2019 with a workaround

Qamar Jamal - IT 1 Reputation point
2022-09-10T00:41:33.057+00:00

Hi Microsoft Support,

Symptoms : We have SQL server 2019 Enterprise Edition with Cumulative Update 16. During execution of a very simple stored procedure which just runs a simple select query, we got the error message “Attempt to access expired blob handle (1)”

Status: According to KB4540346 It happens in SQL 2019 when a merge statement is executed and the issue is fixed in CU4

Scenario : In our case we were running a simple select statement from one table and we have CU16 installed

Workaround : Restart the SQL services resolved the issue

Please advise

Regards

Qamar

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,648 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Erland Sommarskog 110K Reputation points MVP
    2022-09-10T14:23:15.827+00:00

    This is not the place to open support tickets. This is a peer-to-peer forum for help with SQL Server. What we can do here is evaluate if it really is a bug, or if you may be doing something wrong. I would say in this, you most likely have encountered a bug in SQL Server. Although, run DBCC CHECKDB, as it could be token of corruption.

    If you only want Microsoft know about the issue (because you have a workaround), you can report it on https://feedback.azure.com/forums/908035-sql-server. But the information you included is useless for a bug report. Microsoft would need a full repro that demonstrates the issue.

    If this is a blocking isse for you and you need a fix, you must open a support case. Most likely you will be charged initially, but if it is confirmed to be a bug, you will be refunded.

    0 comments No comments

  2. PandaPan-MSFT 1,911 Reputation points
    2022-09-12T02:08:22.797+00:00

    Hi @Qamar Jamal - IT ,
    Like you said and according to this official article, the problem can be fixed by upgrading.And here is the link: https://support.microsoft.com/en-us/topic/kb4540346-fix-merge-statement-fails-with-assert-attempt-to-access-expired-blob-handle-1-in-sql-server-2016-2017-and-2019-63c74917-1bc4-838d-5cb5-05b7e5a8340d.
    Actullay im not sure if you have already solved the problem. If you just want to give advise to Microsoft you can try and follow the step of the @Erland Sommarskog 's answer.

    0 comments No comments

  3. PandaPan-MSFT 1,911 Reputation points
    2022-09-16T02:55:04.627+00:00

    Hi @Qamar Jamal - IT ,
    How about the problem? :)

    0 comments No comments

  4. Qamar Jamal - IT 1 Reputation point
    2022-09-16T03:16:12.16+00:00

    Thank you guys for the reply. I haven't encountered the issue after I restart the SQL services. I was looking to report it to Microsoft but didn't find a forum where I can report. I don't want to spend $499 just to report it :(

    0 comments No comments

  5. PandaPan-MSFT 1,911 Reputation points
    2022-09-16T05:40:57.127+00:00

    Hi @Qamar Jamal - IT
    Here is the link: https://feedback.azure.com/forums/908035-sql-server
    You can feed back in this link. And SQL test team can see it and help to deal with. If the requirement mentioned by customers for many times, the product team may consider to add this feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the level of service provided.

    And if you think my answer is helpful you can mark it, which can be helpful for both community and other users! ^_~

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.