What is the difference between a Local temporary table and a
Global temporary table? How is each one used?

Answer Posted / sarvesh nakhate

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 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is function of ROLLUP ?

640


explain the difference between oracle- sql and sql server sql ? if both are same y we r using 2 sw.s?

1973


Explain what is raid and what are different types of raid levels?

521


What is difference between count (*) and count 1?

509


Differentiate sql server reporting services vs. Crystal reports?

150






How to use wildcard characters in like operations in ms sql server?

588


What are different types of raid configurations? : SQL Server Architecture

562


How to use values from other tables in update statements in ms sql server?

549


What is the correct order of the logical query processing phases?

517


What is the use of commit?

534


What is the difference between dropping a database and taking a database offline?

689


What is the New in SQL server 2008?

570


What is the fastest way to permanently delete a 1 million row table named customers?

589


A user is a member of the public role and the sales role. The public role has select permission on all the tables. The sales role does not have select permission on some of the tables will the user be able to select from all tables?

516


what is normalization? : Sql server database administration

520