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 8075091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:52:35+00:00 2026-06-05T14:52:35+00:00

I read a quote from Zed Shaw once that said something like if a

  • 0

I read a quote from Zed Shaw once that said something like “if a software developer writes the same code more than once, he should write a function so he doesn’t have to repeat himself”.

On a daily basis, I find myself making temp tables in SQL Server more than once per day. I don’t need these tables to live past midnight each day which is why I chose to use a temp table. However, I have various scripts in different tabs in SQL Management Studio – I have to repeat these temp tables in every one of the scripts in order to reference it, and this seems quite inefficient. My ultimate goal would be to run a stored procedure that would populate multiple temp tables and have them available to run my analyses.

Is there a better way to reference the tables than my current usage? Is there a way to reference the temp tables across all sessions in SQL Server 2008?

  • 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-05T14:52:36+00:00Added an answer on June 5, 2026 at 2:52 pm

    It seems that what you want are global temporary tables. The syntax to use them is the same as normal temporary tables, but they have two ## instead of one (##temptable). Please take a look at the link first to know the limitations of them.

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

Sidebar

Related Questions

So, in this guide I read that saying char * terry; was different from
I'm writing a tokenizer that reads code from a file and am having difficulty
The following code adds tasks that perform some processing on files from the blobstore,
I just read this question and stumbled upon the following quote: Scala treats ==
I read quite a number of posts of programmers that run into the Unable
I have read the documentation that states that "given the type of the enum,
I am trying to read an XSLT file from disk in my ASP.Net MVC
I read somewhere that when rendering a lot of 3D objects one could merge
I don't understand why it might be needed twice, this is a quote from
I've read that it's bad practice to style content based on HTML5 data-* attributes.

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.