adspace


How global temporary tables are represented and its scope?

Answer Posted / Ganesh Soni

Global temporary tables (GTTs) in SQL Server are prefixed with two '#' symbols. They can be accessed by any user session that connects to the instance of SQL Server after their creation. Their scope ends when the connection ends, or explicitly dropped. If no connection is accessing a GTT, it will be automatically dropped.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to enter binary string literals in ms sql server?

1243


What are different types of constraints?

998


Why and when do stored procedure recompile?

1056


Why use identity in sql server?

1196


How efficient you are in oracle and SQL server?

1255


What are the kinds of subquery?

1106


What are the different types of subquery?

1233


How to remove duplicate rows from table except one?

1087


Disadvantages of the indexes?

1222


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

1045


Can you index views?

953


How to convert numeric expression data types using the cast() function?

1146


what is spatial nonclustered index

1057


what is the difference between openrowset and openquery?

1191


Is it possible to have clustered index on separate drive from original table location?

1039