Skip to Content

Global Temporary Table Limitation

Hi All,

I there any limitation of no of records that can be inserted into global temporary table?

we have one job that process around 90, 000, 000 records. During process we are using dynamic sql and store result in global temporary table.

Now every time we run this job there is inconsitancy of data. There are around 1 M, that some time appear and some time not.

So, is there any limitation of records/temporary memory space that can be used to store data? I cannot find any other reason for this data inconsistancy.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 23, 2016 at 05:00 AM

    Given that the data needs to fit into memory, I'd say that's a pretty obvious limit.

    Since you avoid any effort to explain about the 'inconsistencies', we have to guess about the cause for those. My guess would be: there's a programming error.

    Add a comment
    10|10000 characters needed characters exceeded

    • Thanks Lars,

      Since i said we used dynamic sql, we tried some differenent approch. Replacing dynamic sql and global temeporary table with static code and its turn out to data start comming consistantly about 90,000,000.

      I have check the dynamic sql. thats a simpal insert into global temporary table.

      So, my only guess that it will be because of Global temporary table, but have not found any material that there is some kind of limitation..

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.