I have a file of a .sql
file that is about 22,000 lines long. It's generated by something else, but basically just contains one update statement per line.
I get this error when I run the file in SQL Server Management Studio.
There is insufficient system memory in resource pool 'internal' to run this query
I think I just need to split this query file up, but I'm not sure the best way to go about it. I could cut the file into 2000 line chunks or something I suppose.
This seems like a simple problem, and I will be doing this often enough I would like to come up with a good solution. Any ideas?