What is the difference between local table and global table

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are ddl triggers and types of ddl trigger?

604


What is resource db in sql server?

593


What is the difference between for xml raw and for xml auto?

561


What is format parameter in ssrs?

109


How to test values returned by a subquery with the in operator?

667






What is resource governor?

543


Does sql server 2000 full-text search support clustering?

505


How to retrieve field values using mssql_result()?

628


What is database isolation in sql server? : sql server database administration

564


How do use Having,Group by,Group function in SQL?

1352


What are the different types of subquery?

612


Does any body please help me what question's have asked for SSRS in the interview?

1664


Working with TLogs

1447


What is the maximum size per database for sql server express?

557


How do I view a script in sql server?

531