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
What is the difference between a stored procedure and a user defined function?
1.what is the diff between nolock optimizer and read uncommitted isolation? 2.what is the diff between revoke and deny? 3.what is percieved down time? 4.whether password protection are required for backups?if yes why?if no why? 5.what is fill factor? 6.what is cost analysis? 7.what is mean by piece meal restore? 8.what is 'rowguidcol'? 9.impersonate permission? 10.what is selectivity?
what's the maximum size of a row? : Sql server database administration
you accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover? : Sql server administration
Explain what stored procedure sp_replcounters is used for? : sql server replication
System requirements for sql server 2005 express edition?
Can you always create a cache of a report?
Do I need a report server to run reports in my application?
How to provide values to user defined function parameters?
Do you know how to make remote connection in database?
Can you explain what is indexed view? How to create it?
Explain different types of collation sensitivity?
How to create median function?
How to replace null values in expressions using isnull()?
What is the default value of an integer data type in sql server 2005?