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...

What is the difference between truncate and delete statement?

Answer Posted / sreejith s t

Both Truncate and delete deletes the rows from a table .
But we cant use where clause in truncate statement . While
doing delete operation all the deleted rows are logged in
the transaction log . It reduces the perfomance . In
truncate operation no transaction logging is happening .
Delete is Autocommited but Truncate is Not .

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain acid?

1074


What is the difference between delete and truncate statements?

1071


How we can refresh the view?

1104


What is for xml in sql server?

1063


What is sqlservr.exe - process - sql server (sqlex?press)?

1104


can a database be shrunk to 0 bytes, if not, why? : Sql server administration

1207


What is an indexed view?

950


where can you add custom error messages to sql server? : Sql server administration

1111


How to view existing indexes on an given table using sys.indexes?

1088


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

958


What is the maximum number of index per table?

1070


Is sql server is free?

973


Where to find ntwdblib.dll version 2000.80.194.0?

958


What is query optimizer in sql server?

1015


What are different types of replication in sql server?

1082