Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between a local and a global variable?

Answer Posted / thiyagaraj.ramaswamy

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

Is This Answer Correct ?    119 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I applied Transactional with updatable subscriptions replication on 2 tables now i want to delete those 2 tables but i cannot delete those tables as replication is running how can i stop replication for those 2 tables(but i don't want to delete those replicated tables but i need to stop the replication) how can i do that

2023


explain extended properties

987


what are candidate key, alternate key and composite key? : Sql server database administration

916


Write a sql query to sort on different column name according to the parameters passed in the function?

899


How does a profiler work?

922


How to create dbo table in sql server?

950


What are the commands used in DCL?

1023


What are the disadvantages of using querystrings to send data from one page to another?

1005


What is the process of normalization?

1120


Explain difference between cross join and full outer join?

1005


What is sql stored procedure?

1086


Do you know what is similarity and difference between truncate and delete in sql?

1005


what is bit datatype? : Sql server database administration

916


What do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?

952


How to enable/disable indexes?

1066