CTE

SQLServerCentral Article

Optimize Your SQL by Reformulating the Spec

  • Article

As SQL developers, we tend to think of performance tuning in terms of crafting the best table indices, avoiding scalar and table valued functions, and analyzing query plans (among other things). But sometimes going back to the spec and applying some properties of elementary math can be the best way to begin to improve performance of SQL queries which implement mathematical formulas. This article is a case study of how I used this technique to optimize my SQL implementation of the Inverse Simpson Index.

(3)

You rated this post out of 5. Change rating

2021-05-07 (first published: )

5,403 reads

SQLServerCentral Article

Cursor-Killing: Accessing Data in the Next Row

  • Article

Cursors are considered by many to be the bane of good T-SQL. What are the best ways to avoid iterative T-SQL and to write queries that look and perform beautifully? This first part in an ongoing series of cursor-killing handles inter-row analysis.

(94)

You rated this post out of 5. Change rating

2015-12-18 (first published: )

22,688 reads

Blogs

A New Word: La Guadière

By

la guadière – n. a glint of goodness you notice in something that you...

Microsoft Purview data governance best practices

By

Microsoft Purview can be the best data governance tool in the world, but it...

AI Insights for Database Monitoring: A DBA’s Perspective

By

Second in a series on Ai and databases. One Story, three signals – I...

Read the latest Blogs

Forums

PolyBase Trace Flags

By Leo.Miller

Are there any good articles on all the trace flags that are enabled on...

The Data Model Matters

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Data Model Matters

Understanding SQL Server PARTITION BY with Examples

By Imran2629

Comments posted to this topic are about the item Understanding SQL Server PARTITION BY...

Visit the forum

Question of the Day

Running SQLCMD I

I run the SQLCMD utility as follows:

lcmd -S localhost -E
I then type this (the 1> is the prompt):
1> select @@version go
If I hit enter, what happens?

See possible answers