Home > DeveloperSection > Interviews > What is the difference between a local and a global variable?

Posted on    December-23-2013 12:38 AM

 C# C# 
 1 Answer(s)
  992  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Posted on    December-23-2013 1:00 AM

A Local temporary table exists only for the duration of a connection or, if defined inside a compound statement, for the duration of the compound statement.

A Global temporary table remains in the database permanently, but the rows exist only within a given connection. When connection is closed, the data in the global temporary table disappears. However, the table definition remains with the database for access when database is opened next time.

Don't want to miss updates? Please click the below button!

Follow MindStick