|
INTERVIEW QUESTIONS
DATABASE
SQL
DETAILS
Question: What is the difference between a Local and a Global temporary table?
Answer: 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.
|
|
|
Category |
SQL Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7417 users |
Added on |
8/24/2016 |
Views |
66012 |
Rate it! |
|
|
Question:
What is the difference between a Local and a Global temporary table?
Answer:
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. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Name 3 ways to get an accurate count of the number of records in a table?
|
View Answer
|
|
What is Log Shipping in case of SQL?
|
View Answer
|
|
What is SQL Server Agent?
|
View Answer
|
|
Which command using Query Analyzer will give you the version of SQL server and operating system?
|
View Answer
|
|
What are the authentication modes in SQL Server? How can it be changed?
|
View Answer
|
|
What is SQL Profiler?
|
View Answer
|
|
What are the properties and different Types of Sub-Queries?
|
View Answer
|
|
What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?
|
View Answer
|
|
When is the use of UPDATE_STATISTICS command?
|
View Answer
|
|
What is difference between DELETE and TRUNCATE commands?
|
View Answer
|
|
What's the difference between a primary key and a unique key?
|
View Answer
|
|
What is OLTP (Online Transaction Processing) in case of SQL?
|
View Answer
|
|
What are different types of Collation Sensitivity, in case of SQL?
|
View Answer
|
|
What are the different index configurations a table can have?
|
View Answer
|
|
What are the difference between Clustered and a Non-Clustered Index?
|
View Answer
|
|
Which TCP/IP port does SQL Server run on? How can it be changed?
|
View Answer
|
|
What is SQL Profiler ?
|
View Answer
|
|
What are the advantages of using Stored Procedures?
|
View Answer
|
|
What is SQL Profiler?
|
View Answer
|
|
What are the properties and different Types of Sub-Queries?
|
View Answer
|