Register   |  Login
You are hereInterview Questions > SQL Server
 Recent Articles
 Recent Interview Question
 Recent Interview Questions and Answers
What is the TCP/IP port number that sql server runs on by default?   Read More...

SELECT Count(*) FROM Syscolumns WHERE ID=(SELECT object_id('tablename'))

  

SELECT  TOP (n) ColName
FROM TableName
ORDER BY ColName DESC 
  

1.       DELETE and TRUNCATE removes rows or records from the table.

2.       DELETE can be used with WHERE clause. But not the TRUNCATE.

3.       DELETE can be rolled back, but not TRUNCATE

4.       DELETE raises TRIGGERS, but not the TRUNCATE

5.       DELETE does not reset the IDENTITY column

  

Run  sp_help 'TableName'

  

More Articles...

 Featured Blogs
 You may be interested