Solved

How can you view a # table in SQL Server 2005?

Posted on 2007-03-30
4
202 Views
Last Modified: 2007-04-02
How can you view a # table in SQL Server 2005?
0
Comment
Question by:fsuedu
4 Comments
 
LVL 20

Expert Comment

by:Sirees
ID: 18825806
You can view using Microsoft SQL Server Mangement studio.

Do you have SQL Server 2005 client tools installed?
0
 
LVL 42

Accepted Solution

by:
dqmq earned 500 total points
ID: 18825843
Or just
Select * from #tablename

But it can only be viewed by the user and session that created it!  Use ##table for a temp table that can be viewed by someone else.
0
 

Author Comment

by:fsuedu
ID: 18825846
Thanks where would I see SQL Server 2005 client tools installed?


JK
0
 
LVL 4

Expert Comment

by:eozz_2000
ID: 18827155
dgmg is fully right, you can only view the # temp tables when you don't close the connection that create it, with ## temp tables any user could see and change it
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question