Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Location
    chennai
    Posts
    25

    Smile Unanswered: variable declaration

    hi,

    i am new to sql server...

    i have used @ symbol for declaring local variables in stored procedure....
    The symbol @@ is there....where to use and what is the purpose of using that symbol...

    could anyone tell...

    thanks
    Sakthi

  2. #2
    Join Date
    Aug 2002
    Location
    Scotland
    Posts
    1,578
    Any pre-supplied variables with @@ represents global system defined variables which can be used, for instance to know number of connections since sql last started you can use @@CONNECTIONS to return.

    REfer to books online for more information.
    --Satya SKJ
    Microsoft SQL Server MVP
    [IMG]http://sqlserver-qa.net/google_bart.gif[/IMG]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •