Reputation: 491
I have a SQL file which has 140.000 rows with only insert statement. When I try to copy and paste it sometimes it will throw:
outofmemory exception
on the SQL Server. And sometimes I get
query completed with error
error when I execute whole insert statement with 'ctrl + A'. Is there possible way to clear SQL Server cache or something for this?
Upvotes: 4
Views: 11609
Reputation: 1
There are many reasons for this issue :
Solutions :
Configure the query window to output query results as text.A text output uses less memory than the grid, and can be enough to display the query results. To change this, follow these steps:
Right click on the query window -> Click Results to -> Click Results to Text.
Right click the query window -> Click Results to- > Click Results To File Then Run the SQL Query, and select the location where you want to save the result file
Upvotes: 9