Thursday, March 1, 2012

Difference between Local Variable and Global Variable

Local Variable :                The scope or lifetime of the local variable  is with in a block or procedure.. Eg: DECLARE @Variable1  Global Variable :                 The scope or lifetime of the global  variable throughout the execution of the program.. Eg: DECLARE @@Variable1

No comments:

Post a Comment