Category: Quick Tips

Sort: Date | Title | Views | Comments Sort Descending
View:

Specifying the Schema

Added by 3 years ago

2.71K Views1 Comments

Aaron Bertrand and Kevin Kline discuss some of the advantages for specifying the schema when creating, altering and referencing objects. They discuss how specifying a schema can affect performance and how important it is for security. They also use demos to illustrate the importance.

The Dreaded SP_ Prefix

Added by 3 years ago

2.83K Views1 Comments

Aaron Bertrand explains what the SP_ prefix is and discusses the performance issues with using it when you call a stored procedure. He also mentions a blog post he wrote about the SP_ prefix, which can be found at SQLPerformance.com/sp_prefix.

Queries with IN(…) / OR

Added by 3 years ago

3.72K Views0 Comments

In this Quick Tip, Aaron Bertrand and Kevin Kline discuss queries that use IN(…) vs. queries that use OR. They use a demo to show how the two types of queries are interchangeable and how they both optimize to the exact same plan.

Temporary Structures

Added by 4 years ago

1.98K Views0 Comments

Kevin Kline discusses how the two types of temporary objects behave. He also shares some information on what they are good at and what they are not good at.

Transitive Property of Indexes

Added by 3 years ago

2.16K Views0 Comments

In this video, Kevin Kline discusses the transitive property of indexes. He starts out by discussing how the transitive property works in algebra. Then he shares how the transitive property in algebra can be applied to Microsoft SQL Server.

Comma Delimited Parameters

Added by 4 years ago

3.34K Views0 Comments

Aaron Bertrand discusses one of his favorite topics, comma-delimited parameters. He shows the different ways you can split strings and which ways are the best.

Unwanted Recompiles

Added by 3 years ago

1.63K Views0 Comments

In this video, Kevin Kline discusses why unwanted recompiles can hurt the performance of your SQL Server. He starts out by explaining why SQL Server keeps compiled code in the cache. Then he moves into the reasons why SQL Server will need to run a recompile on your code.

Implicit Conversions

Added by 4 years ago

2.83K Views0 Comments

Kevin Kline goes over implicit conversions in SQL Server. He discusses what an implicit conversion is, traps that people fall into with implicit conversions and gives a demo on avoiding implicit conversions. ...

Ad-Hoc Sets

Added by 4 years ago

2.75K Views0 Comments

Aaron Bertrand goes over how to generate Ad-Hoc Sets efficiently. He shows examples of how to generate them using recursive CTEs, system tables and number tables and shows which way has the best performance.

SP_EXECUTESQL vs. EXEC(…)

Added by 4 years ago

3.37K Views0 Comments

Aaron Bertrand goes over the differences between SP_EXECUTESQL and EXEC(...). He also provides a demo to show why he likes one more than the other.

To MERGE or not to MERGE

Added by 3 years ago

2.49K Views0 Comments

Aaron Bertrand discusses the issues of using the MERGE statement. He also gives a few ways to avoid using it.

The “Kitchen Sink” Procedure

Added by 3 years ago

6.15K Views0 Comments

Aaron Bertrand discusses the issues of using the “Kitchen Sink” procedure, which is a stored procedure with massive dynamic search parameters. He shows examples of why the procedure is bad and ways to work around it.

Page 1 of 212