Can you tell me the difference between DELETE & TRUNCATE
commands?

Answer Posted / kapil

Delete: is a DML command.
Truncate: is a DDL command.

Delete & Truncate both can be rolled back.
Untill you have not commit transaction.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create “dependant” parameter “make, model, year”

95


What is clustered primary key?

644


This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

2108


When would you use it?

675


What is database replication? What are the different types of replication you can set up in sql server?

591






Difference between connected and disconnected database in .net with sql server?

654


What is stored procedures?

619


What are different types of collation sensitivity?

622


How the authentication mode can be changed?

735


Can we do dml on views?

643


What is the use of attributehierarchyvisible ? : sql server analysis services, ssas

669


What is deploy, process and build? : sql server analysis services, ssas

656


What are exact numeric data types in ms sql server?

593


hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.

1658


What is mapping schema?

670