Results from How to Think in Sets – SQL Saturday Kansas City 2017

Test #Test NameRun time, ms
11Cursor15,306
12Cursor ROFF10,421
13While Loop9,200
14Set-based131
20Subquery in SELECT3,479
21Rewrite as APPLY3,113
22Rewrite using #temp926
23Rewrite as RowNum467
24Subquery in WHERE3,151
25Rewrite as APPLY3.575
26Rewrite using #temp1,416
27Rewrite as RowNum230
30Scalar UDF Data Access183,561
31Scalar UDF Constant116
32Multi-statement TVF194,591
33CLR184,538
34APPLY1,901
35Inline TVF1,779
36RowNum249
40Running Total - Cursor5,158
41Running Total - Triangle Join100,000,000
42Running Total -
Windowing
555
50SSIS - Command Component2,279
51SSIS - Staging565
60C# Singleton Insert2,739
61C# SqlBulkCopy85