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
Diagram of CLR inside SQL Server: a SQL query enters the query processor, which uses the SQL CLR module and the CLR hosting module; SAFE code reaches the database through the engine, EXTERNAL_ACCESS reaches files, registry and network, and UNSAFE reaches native and COM DLLs

SQL Server CLR: The Common Language Runtime Inside the Engine

March 14, 2008
Pinal Dave
SQL Tips and Tricks
CLR, SQL Function, SQL Server, SQL Server Architecture, SQL Stored Procedure

SQL Server CLR means running .NET code, such as C# stored procedures, inside SQL Server. A diagram shows how the pieces fit, and why CLR helps with the cursors and loops that slow down T-SQL.

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
Gouache painting: seen from above, a round cake turntable holds a plain unfrosted cake

SIN and COS: Use Radians for Trigonometric Inputs

February 29, 2008
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

SIN and COS read angles in radians and return float. These explicit degree conversions show signs, axis angles and fractional results at a chosen decimal display scale.

Read More
Previous 1 … 384 385 386 387 388 389 390 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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