CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS DATABASE SQL SERVER DETAILS
Question :
What is table in SQL server? What is ##table in SQL server?
Category SQL Server Interview Questions
Rating (0.0) By 0 users
Added on 4/3/2008
Views 659
Rate it!
Answers:

#table in SQL Server :

This # symbol prefixed with the tablename indicates that it is a local temporary table. This table will be existing till the session exists. Once the session expires the table will be dropped automatically. The table that is created with # symbol prefixed is temporary, so we can't give foreign key constraints to that table. Rest all the features are similar to that of the table that is permanent.

create table #Employee(EmpId int,EmpName Varchar(20))

##table in SQL Server:

This ## symbol prefixed with the tablename indicates that it is a Global Temporary table.This particular temporary table can be used by all the connections of SQL server and the temporary table is made available for all the users to access it.

The Temporary table can be mostly used for 'Select into' statements



Table in SQL Server is an entity that holds information about the entity that we are talking about. For eg we can have a customer table holding customer details such as Customer name, Address etc.

##table stands for Global temporary table and it exists for all the connections that are made to the SQL server.



 Posted by: Pawan Tewari    

Contact Pawan Tewari  Contact Pawan Tewari


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
Give some examples of Analytical functions?
View Answer
What is the difference between "translate" and "replace"?
View Answer
How functional dependency is related to database table design?
View Answer
What is DYNAMIC SQL method ?
View Answer
What is the query used to display all tables names in SQL Server (Query analyzer)?
View Answer
What is the query used to display all tables names in SQL Server (Query analyzer)?
View Answer
What is a dirty page and dirty report?
View Answer
What are the new enhancements in SQL server 2005?
View Answer
Difference between a "where" clause and a "having" clause?
View Answer
Write sql query for retrieving employee names from employee table who are having salary greater than 5000 without using where clause?
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL SQL Server Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/14970/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.73