Join Joey D'Antoni for an in-depth discussion in this video Table variables, part of SQL Server Performance for Developers.
- [Instructor] One of the more controversial topics…around temporary objects is the use…of table variables versus the use of temporary tables.…While both of these options use TempDB…as a storage mechanism for their data,…they do have some different considerations,…especially around the optimizer…and there are some myths around table variables.…One of which is that table variable are…exclusively in memory objects and don't go to disk.…Which that is not true.…I have to say, just like everything else in SQL Server,…there's a little bit of a caveat because in SQL Server 2014,…when in memory LTP was introduced we do have the ability…to make a specifically in memory table variable.…
However, if we don't do that,…call in out specifically as in memory,…it will go to disk in TempDB.…That's just something that's part of this.…Table variables, in general, are best used…when you know you're always going to have a small set of rows.…And when I say small I mean less than a hundred rows.…And you want to pass those either to another 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.