Global Temp Table

  • What is the maximum no.of global temporary tables can create in sql server

  • There is no limit on the number of the Global temporary tables you create in sql server.

    Memory is limit...!!! 😎

    Regards,
    Shafat Husain
    🙂
    And Your Lord Never Forgets...!! (64:19 -- Quran)

  • Probably the limit of the number of objects in a database. That's 2.3 billion, give or take.

    Memory is NOT the limit as temp tables are not memory-only.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • GilaMonster (12/10/2014)


    Probably the limit of the number of objects in a database. That's 2.3 billion, give or take.

    Memory is NOT the limit as temp tables are not memory-only.

    Over and above the 2.3 billion due to internal references, wont the limiting factor be available space within the Temp DB.

    _________________________________________________________________________
    SSC Guide to Posting and Best Practices

  • Jason-299789 (12/10/2014)


    GilaMonster (12/10/2014)


    Probably the limit of the number of objects in a database. That's 2.3 billion, give or take.

    Memory is NOT the limit as temp tables are not memory-only.

    Over and above the 2.3 billion due to internal references, wont the limiting factor be available space within the Temp DB.

    Indeed. The space available to TempDB on disk is far more likely to prevent more temp tables (global or otherwise) than anything else.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply