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 2000 Forums
 SQL Server Development (2000)
 Temporary Tables

Author  Topic 

zubairmasoodi
Starting Member

35 Posts

Posted - 2007-04-23 : 07:04:07
hi all

Stuck with a problem of how to get the column informaion of
Temporary Table that i Create dynamically in a Procedure .
I tried with SP_CLOUMNS inbuilt procedure but that didnt help

any help is greately acknowledged

Thanks in Advance

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-04-23 : 07:06:28
[code]
select *
from tempdb..syscolumns where id = object_id('tempdb..#temptable')
[/code]


KH

Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-04-23 : 07:08:40
Or this:

EXEC tempdb..sp_columns '#temptable'


Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

zubairmasoodi
Starting Member

35 Posts

Posted - 2007-04-23 : 07:50:56
HI
Harsh Athalye and khtan

I extend my sincere Thanks to both of u. I acn do it Now

Thanks
Go to Top of Page
   

- Advertisement -