create a temp table with an existing table stucture

create a temp table with an existing table stucture

Post by Patric » Sat, 29 Dec 2001 05:06:16



Hi freinds,
SQL 2000 WIN2000
I need to create a temp table <temp_agency> base on <agency> table
structure!
Is there any fast way to create temp table ? Or I have to specify each
field?

Thanks in advance,
Patrick

 
 
 

create a temp table with an existing table stucture

Post by oj » Sat, 29 Dec 2001 05:09:53


patrick,

select top 0 *
into temp_agency
from agency

-oj


Quote:> Hi freinds,
> SQL 2000 WIN2000
> I need to create a temp table <temp_agency> base on <agency> table
> structure!
> Is there any fast way to create temp table ? Or I have to specify each
> field?

> Thanks in advance,
> Patrick