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)
 Temp and Global tables

Author  Topic 

karthickbabu
Posting Yak Master

151 Posts

Posted - 2008-01-08 : 07:47:49

If any one know the article link relate to this or if u know tell me detailed

Difference between the @Var, #Var and ##var
Where it use effectively?

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-01-08 : 08:15:36
books online explains the difference pretty nicly.
but when to use it depends on what you want to do.
you can't just use one instead of the other everywhere.


_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com <- new version out
Go to Top of Page
   

- Advertisement -