Join Joey D'Antoni for an in-depth discussion in this video Stored procedures vs. dynamic SQL, part of SQL Server Performance for Developers.
- [Instructor] Stored procedures versus dynamic SQL.…This is really one of the all time great debates…between database administrators and database developers.…Frequently as a database administrator,…I run into developers who want to use dynamic SQL…because they can implement it inside of their C# code,…and it's a little bit easier to implement and code,…and they don't have to go over to T-SQL in code.…However, there are some real benefits…to using stored procedures…in term of just security and consistency of performance.…Let's talk about some of the differences here…between stored procedures and dynamic SQL.…
What stored procedures are is code that's built…within the database and is part of the database schema…that typically encapsulates some level of business logic…and database logic,…and frequently it takes input and output parameters…and has even internal parameters to pass data within itself.…That can be called, we call it an execution.…Additionally, with stored procedures, our plans are cached,…so even if we're calling a stored procedure…
- 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.