Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Other SQL Server Topics / February 2008

Tip: Looking for answers? Try searching our database.

Extract Temp table script from SMS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Disney - 28 Feb 2008 20:28 GMT
I have a developer request to extract script of the temp table that he
created in tempdb through SMS how would we do that

If I have created the temp table…
SELECT ‘Usernae'[Name], 32 [Age]
INTO #DELETE_ME

How can I generate a list of the columns in table #DELETE_ME

Typically I use Management Studio and right click the table and choose
“Generate Table as”…”Select To”.
Andrew J. Kelly - 28 Feb 2008 23:30 GMT
There is no way that I know of but you can just as easily select into a real
table in Tempdb and script that one. Just remember to drop the table when
done.

Signature

Andrew J. Kelly    SQL MVP
Solid Quality Mentors

>I have a developer request to extract script of the temp table that he
> created in tempdb through SMS how would we do that
[quoted text clipped - 7 lines]
> Typically I use Management Studio and right click the table and choose
> “Generate Table as”…”Select To”.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.