Learn MySQL from the Best Tutors
Search in
Asked by Harshitha Last Modified
TRUNCATE is faster than DELETE because:
TRUNCATE
is faster than DELETE
in SQL Server because:
No Row-by-Row Deletion: DELETE
removes rows one by one and logs each row deletion, which takes more time. On the other hand, TRUNCATE
deallocates entire data pages, removing all rows in one operation without logging each row individually.
Minimal Logging: TRUNCATE
is a minimally logged operation, whereas DELETE
generates a lot of log data for each deleted row, slowing down performance.
No Triggers or Foreign Key Checks: TRUNCATE
does not activate triggers or enforce foreign key constraints, unlike DELETE
.
Here is my number Call 073-1485-0321.
read lessRelated Questions
Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com
Ask a QuestionRecommended Articles
Top 5 Skills Every Software Developer Must have
Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today. In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...
Read full article >
8 Hottest IT Careers of 2014!
Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...
Read full article >
Learn Microsoft Excel
Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...
Read full article >
Make a Career in Mobile Application Programming
Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...
Read full article >
Looking for MySQL Training?
Learn from the Best Tutors on UrbanPro
Are you a Tutor or Training Institute?
Join UrbanPro Today to find students near youThe best tutors for MySQL Classes are on UrbanPro
The best Tutors for MySQL Classes are on UrbanPro