Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8188899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:04:23+00:00 2026-06-07T03:04:23+00:00

In my server code, I create a temp (named #temp) table, insert some data

  • 0

In my server code, I create a temp (named #temp) table, insert some data and then delete the temp table. If more than 1 users were to run this section of the code (creating of the temp table) concurrently, would sql server 2008 create a temp table per user or does it create 1 ‘global’ temp table? If its one table, I assume I would run into trouble when the same table is created more than once?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:04:25+00:00Added an answer on June 7, 2026 at 3:04 am

    From MSDN:

    You can create local and global temporary tables. Local temporary
    tables are visible only in the current session, and global temporary
    tables are visible to all sessions
    …
    If a local temporary table is created in a stored procedure or
    application that can be executed at the same time by several users,
    the Database Engine must be able to distinguish the tables created by
    the different users. The Database Engine does this by internally
    appending a numeric suffix to each local temporary table name. The
    full name of a temporary table as stored in the sysobjects table in
    tempdb is made up of the table name specified in the CREATE TABLE
    statement and the system-generated numeric suffix. To allow for the
    suffix, table_name specified for a local temporary name cannot exceed
    116 characters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Similar to Insert into a temp table from a stored procedure on Sql Server
I have my server side code create an event on Facebook, using a Facebook
I have this code to create a webapp in my server: import web urls
I'm trying to dynamically create a book from code server-side. That part's working fine,
Trying to create COM -object on server. code is: var myGuid = new Guid(530A1815-820C-11D3-BBB7-008048DE406A);
I have to create an sample code that connect to a socket server, and
How to create simple PHP COMET server page displaying current time? I need code
I've got some PHP code that'll create a new file in a set directory:
I'm working on a stored procedure in SQL Server 2000 with a temp table
I want to be able to insert data from a table with an identity

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.