Home Forums SQL Server 2005 Development Error-Not enough storage is available to complete this operation. RE: Error-Not enough storage is available to complete this operation.

  • GoGreen (3/14/2010)


    hi all,

    Thanks for your feedback.

    OS is not the issue here nor the space still I have more than enough remaining on my disk.

    I am using multiple INSERT Statement to build large SQL statement...

    For eg

    I read from file differnet column values and build Simple INSERT statement...

    file may contain more than 20,00 Rows /lines

    for i=0 to No.Of Rows

    INSERT INTO (...)

    next

    If my file large enough it bombs me out!!!!

    From your description, it sounds like a custom error message that you are generating somewhere.

    You are using an iterative process, and should use a set-based method to do this (more efficient)

    It also sounds like you are using a home grown app (not sql and not ssis) which could be chewing up a lot of resources.

    What application, coding language are you using?

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events