title: Query completed with errors while major inserting in query
body: <p>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:</p>
  
  <blockquote>
    <p>outofmemory exception</p>
  </blockquote>
  
  <p>on the SQL Server. And sometimes I get</p>
  
  <blockquote>
    <p>query completed with error</p>
  </blockquote>
  
  <p>error when I execute whole insert statement with 'ctrl + A'. Is there possible way to clear SQL Server cache or something for this?</p>