Join Joey D'Antoni for an in-depth discussion in this video Implicit transactions: Why they're terrible, part of SQL Server Performance for Developers.
- [Narrator] So in sequel server,…by default the database engine uses…what's known as an auto commit.…every T-sequel statement is committed…or rolled back when it completes.…If that statement completes with that error, its committed.…This means it's written to the transaction log.…If the statement gets an error,…it's rolled back.…Which means the value,…for example if we were updating a value,…say we were updating the value one to the number two,…it would be rolled back to the number one.…The database engine will always use…this auto commit functionality.…
Unless a transaction is explicitly specified…and what you mean by a transaction…being explicitly specified,…is when you say begin tran…and in tran in your code…and you have commit,…or roll back in error handling.…Which is what you should do…for your production code within your application…because you want to manage error handling within your code.…The other way auto commit will turn off,…is if the implicit transaction option is set to on.…With the implicit transaction option,…
- Query execution
- How to read an execution plan
- What not to do with SQL Server
- Why cursors are bad
- Why scalar UDFs are expensive
- Datatypes and design
- What is a columnstore index?
- Transaction isolation
Skill Level Intermediate
1. Query Execution
2. What Not to Do with SQL Server
3. Datatypes and Design
4. Temporary Objects
7. Isolation Levels
Next steps2m 15s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.