Quantcast
Channel: Answers for "Sql Server - Difference between @id and @@id"
Browsing all 4 articles
Browse latest View live

Answer by Fatherjack

In previous versions of SQL Server @ described a local variable and @@ describe a global variable. Now (SQL 2008) @@ is used for a function name so @@ shouldnt be used as a parameter name.Books OnLine...

View Article



Answer by Matt Whitfield

There is no difference. The rules for variables state that they start with an '@' character and follow the rules for identifiers.Since '@' is a valid identifier character, you can have as many as you...

View Article

Answer by Fatherjack

In previous versions of SQL Server @ described a local variable and @@ describe a global variable. Now (SQL 2008) @@ is used for a function name so @@ shouldnt be used as a parameter name.Books OnLine...

View Article

Answer by Matt Whitfield

There is no difference. The rules for variables state that they start with an '@' character and follow the rules for identifiers.Since '@' is a valid identifier character, you can have as many as you...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images