Insert into table 10000 rows by 10000 in SQL Server
I am doing a query that retrieves 450 million rows, every time I run it I get an 'Active Transaction Full' error message.
I want to insert 10,000 rows by 10,000 rows on my table, instead of trying to insert all at once, is it possible please?
My query :
INSERT INTO ZED_COTIS.stockdenorm.[DossierRecouvrement_Ind]
SELECT DISTINCT
A.*
FROM
STOCK_Pleiade.stock.TDossierRecouvrement A
INNER JOIN
STOCK_Pleiade.stock.TClientIndividuel B ON A.RefUnClient = B.OID
from Recent Questions - Stack Overflow https://ift.tt/3F2uMRs
https://ift.tt/eA8V8J
Comments
Post a Comment