Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How to rename #tempdata table

Author  Topic 

vision.v1
Yak Posting Veteran

72 Posts

Posted - 2010-10-13 : 11:56:07
Hi,

How can we rename a temporary table.

Is there any command to rename #tempdata table....

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-10-13 : 11:57:47
None that i know of. Why would you need to do this? Just create it with a different name. After all, they're dropped at the latest when the connection closes.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2010-10-13 : 12:03:26
SELECT * INTO#NewName FROM #tempdata
DROP #tempdata

????

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx





Go to Top of Page
   

- Advertisement -