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
 General SQL Server Forums
 New to SQL Server Programming
 Table Variable syntax

Author  Topic 

aoriju
Posting Yak Master

156 Posts

Posted - 2011-02-20 : 23:28:41

Hi all ,
I have a hash table
SELECT * INTO #Table from Table1

What is the equalent of table variable(With out Declaring the structure)

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-02-20 : 23:36:23
You can do that for temp table, but for table variable, you have to use the declare statement


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

MIK_2008
Master Smack Fu Yak Hacker

1054 Posts

Posted - 2011-02-20 : 23:38:32
there is No equivalent of the table variable (without declaring the structure) first you should declare the table variable along with its structure only then you can use it..

Cheers
MIK
Go to Top of Page
   

- Advertisement -