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

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 ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens when converting big values to integers?

995


Do you know the policy based administration feature of sql server 2008?

947


Why truncate is ddl command?

1054


Explain the difference between delete,drop and truncate in SQL Server?

1088


How do I manually uninstall an instance of sql server 2016?

1026


What is difference between inner join and join?

1034


How to recover from sql injection? : sql server security

1006


Is it possible to have clustered index on separate drive from original table location?

958


If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?

932


How do I make a resultset scrollable?

954


Explain indexed views?

967


Can you explain the disadvantages/limitation of the cursor?

975


What is a field in a table?

1032


Where are stored procedures in sql server?

1059


hi i am working as a testengineer , so i want to no the backend data base connection can any one tell mwe in detail

2211