March 2018
Intermediate to advanced
816 pages
19h 35m
English
When we issue T-SQL commands to SQL Server, the commands are parsed and compiled into machine code, which is then executed. This parsing and compiling becomes a major bottleneck when the locking and latching caused by pessimistic concurrency is removed. This is where natively compiled stored procedures come into play. They are effectively T-SQL code that is compiled into machine code once, and then instead of the parse and compile of a standard T-SQL command, the compiled DLL for the stored procedure is called. The improvements in execution time can be phenomenal.
Our next possibility of improvement is to reduce our parse and compile time of the insert command (the Query Interop mentioned earlier in this ...
Read now
Unlock full access