Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / pankaj kumar upadhyay

1) When we use delete command that time we will use
conditon or without conditon but when we use truncate
command so that time we will not use condition.

2)delete can roll back but truncate is not rollback.

3)Truncate is faster compare delete command.

4)delete is DML command while Truncate is DDL.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / afzal_aziz

http://weblogs.sqlteam.com/mladenp/archive/2007/10/03/SQL-
Server-Why-is-TRUNCATE-TABLE-a-DDL-and-not.aspx

Is This Answer Correct ?    2 Yes 3 No

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

Answer / 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

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

Answer / amita

Delete command only delete the rows from the table but the
schema of the table yet remains.Whereas Truncate command
delete the rows along with the tale's schema from the
memory permanently.

Is This Answer Correct ?    3 Yes 28 No

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

Answer / saradhi

Truncate command result can be rolled back as it is not
made an entry in the log where as Delete command result
can't be rolled back

Is This Answer Correct ?    5 Yes 47 No

Post New Answer

More SQL Server Interview Questions

Find columns used in stored procedure?

0 Answers  


How to implement service broker?

0 Answers  


What is split brain scenario in DB mirroring?

1 Answers  


How to apply filtering criteria at group level with the having clause in ms sql server?

0 Answers  


Let’s say the table in the database is named as TBL_Register. The fields in this table include: 1. User_Name, 2. User_Telephone, 3. Register_Date The field Register_Date stores the current date and time of the registration. Write the SQL statement that inserts the data into the table.

2 Answers   Techno Solutions,


How to read data in a table with "select" statements?

0 Answers  


How to assign null values to variables or columns?

0 Answers  


what is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration

0 Answers  


What is a periodical index?

0 Answers  


Can we drop user if user mapped to any logins

1 Answers  


Are connections to sql server encrypted?

0 Answers  


What is indexed views? plz explain with example?

2 Answers  


Categories