What is the difference between local table and global table



What is the difference between local table and global table..

Answer / radha

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.

Is This Answer Correct ?    17 Yes 7 No

Post New Answer

More SQL Server Interview Questions

What is the difference between WHERE AND IN? OR 1. SELECT * FROM EMPLOYEE WHERE EMPID=123 2. SELECT * FROM EMPLOYEE WHERE EMPID IN (123) WHAT IS THE DIFFERENCE?

15 Answers   Adsys, Cap Gemini,


How to delete duplicate records based on single column from a table?

0 Answers   Petranics Solutions,


How to check what was the last restore transaction LSN in Log shipping or Mirroring? when we don't have a Monitor or witness server.

0 Answers   IBM,


Difference between connected and disconnected database in .net with sql server?

0 Answers   Infosys,


last function used in MS Access to convert sql what function will use in sql

0 Answers   Cap Gemini,






How to execute stored procedure and set temp table in sql server?

0 Answers  


How to delete a database in ms sql server?

0 Answers  


As a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this?

0 Answers  


how to find number of columns in a table in sql server 2000 and 2005 also

7 Answers   HCL, Virtusa,


What are the grouping functions?

0 Answers  


Can a function call a stored procedure in sql server?

0 Answers  


what is difference between primary key and Unique

8 Answers  


Categories