Log på med Microsoft
Log på, eller opret en konto.
Hej
Markér en anden konto.
Du har flere konti
Vælg den konto, du vil logge på med.
Engelsk
Vi beklager. Denne artikel er ikke tilgængelig på dit sprog.

Symptoms

Consider the following scenario:

  • You have a stored procedure that creates a temporary table in Microsoft SQL Server.

  • You run a query that the stored procedure issues, and the query meets the following conditions:

    • The query references to the temporary table that's created by the stored procedure.

    • The query has a WHERE clause that's not covered by any indexes, and the missing indexes feature is enabled.

  • Assume that the stored procedure is called concurrently from multiple instances. Then the temporary tables are created and dropped frequently, that will lead to frequent creation and deletion of the corresponding records for the missing indexes.

  • In this situation, if a pending query of the stored procedure is cancelled, you may receive an access violation error.

Resolution

This issue is fixed in the following cumulative updates for SQL Server:

      Cumulative Update 2 for SQL Server 2017

      Cumulative Update 9 for SQL Server 2016 RTM

      Cumulative Update 6 for SQL Server 2016 SP1

      Cumulative Update 8 for SQL Server 2014 SP2

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

Latest cumulative update for SQL Server 2017

Latest cumulative update for SQL Server 2016

Latest cumulative update for SQL Server 2014

Workaround

The workaround for this issue is to enable the Trace Flag (TF) 2392 which will suppress the collection of missing indexes.

More Information

To get more information about the missing indexes feature, please refer to the following link:

Missing Indexes Feature

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References

Learn about the terminologythat Microsoft uses to describe software updates.

Har du brug for mere hjælp?

Vil du have flere indstillinger?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Var disse oplysninger nyttige?

Hvad påvirkede din oplevelse?
Når du trykker på Send, bliver din feedback brugt til at forbedre Microsoft-produkter og -tjenester. Din it-administrator kan indsamle disse data. Erklæring om beskyttelse af personlige oplysninger.

Tak for din feedback!

×