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
 Transact-SQL (2000)
 Queries

Author  Topic 

shubhada
Posting Yak Master

117 Posts

Posted - 2006-07-07 : 04:09:44
I have some queries like
1.what is the difference between # and ##?
2.what do mean by @@ and use of @@ in sql server?

shubhada

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-07-07 : 04:14:50
# and ## both for creating temp table
- #table is local temp table
- ##table is global temp table

@ is for local variable
@@ is SQL Server internal variable


KH

Go to Top of Page

shubhada
Posting Yak Master

117 Posts

Posted - 2006-07-07 : 04:18:41
where @@ is used?You have any example....

shubhada
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-07-07 : 04:43:58
open up the help file aka BOL, in index input @@ and you will get the whole list


KH

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-07-07 : 04:57:30
quote:
Originally posted by shubhada

where @@ is used?You have any example....

shubhada


Didnt you use @@ROWCOUNT?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -