Home Forums SQL Server 7,2000 Administration An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown. RE: An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown.

  • krishnaprasad14 (7/10/2012)


    Hi,

    I am geting this error when I try to run a quer through SSMS.

    Table got 23000 records and SQL srever max memoy assigned 3024.

    Thank you in Advance,

    Krishna

    Run the results of the query into a file. The grid in SSMS is a resource hog.

    “Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

    For fast, accurate and documented assistance in answering your questions, please read this article.
    Understanding and using APPLY, (I) and (II) Paul White
    Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden