Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.


When you run many Clustered Columnstore bulk inserts concurrently in Microsoft SQL Server 2017 and 2019 on a computer that has insufficient memory, you may receive a memory grant time-out error.


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

More information

Column store bulk insert queries might require lots of memory for the column store insert operator and any other memory-consuming operators in the query, such as sort.

By default, SQL Server waits for 25 seconds to get the memory grant. If a bulk insert still cannot get necessary memory, it will fall back to trickle insert to make sure that queries can progress. (For more information about trickle inserts, see Columnstore indexes - Data loading guidance).

However, this occurs only when the number of active sessions with a memory grant in the current resource pool is less than a particular threshold value that is proportional to the number of logical cores. If the number of such concurrent sessions is too high, the bulk insert query might fail and generate a memory grant time-out error after 25 seconds. This may create unexpected issues for the data loading applications. This update changes how a bulk insert waits for a memory grant. The insert will now use a time-out value that's calculated similarly to any other kind of query.


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

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:


Learn about the terminology that Microsoft uses to describe software updates.

Need more help?

Want more options?

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.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!