This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
SQL SERVER - 2005 - What is CLR?

SQL SERVER – 2005 – What is CLR?

March 14, 2008
Pinal Dave
SQL Tips and Tricks
CLR, SQL Function, SQL Server, SQL Utility

CLR is the Common Language Runtime. A diagram of its architecture, and why CLR stored procedures in C# help with the loops and recursion that slow down T-SQL.

Read More
A blue maze to represent a SQL problem.

SQL SERVER – How to Retrieve TOP and BOTTOM Rows Together using T-SQL – Part 2 – CTE

March 10, 2008
Pinal Dave
SQL Tips and Tricks
CTE, SQL Function, SQL Joins, SQL Scripts, SQL Server

Part 2 of retrieving TOP and BOTTOM rows together: a reader’s solution using a CTE, the temporary result set introduced in SQL Server 2005.

Read More
A small garden gate with a latch polished bright from use beside a grand iron gate rusted shut.

Finding the Most Frequently Run Queries

March 9, 2008
Pinal Dave
SQL Performance
Query Store, SQL Cache, SQL CPU, SQL DMV, SQL Server

Most frequently run queries can consume large SQL Server resources even when each call is fast; use plan cache and Query Store to find them.

Read More
A gouache water garden groups matching bowls on three distinct terrace levels, with a red wedge at the middle shelf.

SQL SERVER – Find Nth Highest Record from Database Table

March 8, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

The fourth Highest Record depends on whether ties occupy separate places. I define the ranking rule before choosing a query.

Read More
A hand turning a red stopcock between two glass flasks

ACID Properties Shown With Real Transactions

March 6, 2008
Pinal Dave
SQL Tips and Tricks
ACID, SQL Server, SQL Transactions, Transaction Isolation

ACID properties shown With Real Transactions uses short SQL Server scripts to explain atomicity, consistency, isolation, and durability.

Read More
Gouache painting: on a vineyard floor four small wooden grape tubs sit in a two by two block, red and white grapes from two vineyard blocks

CUBE: Include Every Two-Dimensional Subtotal Combination

March 3, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Reports, SQL Scripts, SQL Server

CUBE requests every grouping combination of its dimensions, including independent subtotals and the grand total. I compare its output population with ROLLUP before choosing it. More subtotal families are useful only when the report needs them.

Read More
SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL

SQL SERVER – How to Retrieve TOP and BOTTOM Rows Together using T-SQL

March 2, 2008
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Function, SQL Joins, SQL Scripts, SQL Server

Need TOP 1 and BOTTOM 1 in one result? UNION fails with two ORDER BY clauses. Here is a simple T-SQL way to retrieve TOP and BOTTOM Rows together.

Read More
Previous 1 … 388 389 390 391 392 393 394 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com