SQL Server Performance

what is @@ Called?

Discussion in 'General Developer Questions' started by vamsimusunuru, Jun 29, 2006.

  1. vamsimusunuru New Member

    What is @@ Called in @@ERROR?
  2. Madhivanan Moderator

  3. ramkumar.mu New Member

    I have a doubt...

    I created a variable @@variable1 and assigned some value in a SP (say proc1). i called proc1 from some other sp (say proc2), and used that variable @@variable1 in proc2 with out declaring it and it throwed an error saying, the @@variable1 is not declared.

    what is exact use of allowing a declaration like that if i cannot use it from outside?

    Thanks,
    Ram

    "It is easy to write code for a spec and walk in water, provided, both are freezed..."
  4. FrankKalis Moderator

Share This Page