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
A gouache mason's courtyard groups paired stones on three distinct height levels, with a red wedge at the middle level.

SQL SERVER – Query to Retrieve the Nth Maximum Value

April 27, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Joins, SQL Scripts, SQL Server

Finding the nth Maximum Value means deciding how ties should count. Here, I rank distinct known salaries.

Read More
A gouache garden gate has three distinct latch mechanisms, with a vermilion pin beside weathered timber and iron fittings.

SQL SERVER – Locking Hints with Correct Scope and Safe Examples

April 27, 2007
Pinal Dave
SQL Tips and Tricks
SQL Lock, SQL Scripts, SQL Server

Locking Hints change how a table reference participates in locking. I choose the required consistency before changing the query.

Read More
SQL SERVER - Difference Between Unique Index vs Unique Constraint

SQL SERVER – Difference Between Unique Index vs Unique Constraint

April 26, 2007
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Index, SQL Scripts

Unique Index vs Unique Constraint: is there a difference? No. A unique constraint creates a unique index, and performance is the same. Syntax for both.

Read More
Configure and reconfigure options.

SQL SERVER – Enable xp_cmdshell using sp_configure

April 26, 2007
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Scripts, SQL Server, SQL Server Configuration, SQL Server Security, SQL Stored Procedure, SQL Utility

Enable xp_cmdshell with sp_configure: turn on show advanced options, set xp_cmdshell to 1 and run RECONFIGURE. The full script is ready to run in SSMS.

Read More
Gouache painting: four wooden window shutters stand in a row on a cream plaster farmhouse wall, the first and fourth closed, the second open

Bitwise Flags: Test, Add and Toggle Individual Bits

April 26, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

Bitwise flags use AND to test, OR to add and XOR to toggle a mask. Keep flag meanings explicit and preserve missing values in read-only examples.

Read More
A brass hourglass on a workbench with the sand fully run out, standing beside a padlocked cabinet door.

SQL SERVER – Alternate Fix : ERROR 1222 : Lock request time out period exceeded

April 25, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Lock, SQL Server, SQL Server Security

ERROR 1222: Lock request time out period exceeded. Find the blocking transaction with DMVs, and what to change when you are not allowed to kill it.

Read More
SQL SERVER - ERROR Messages - sysmessages error severity level

SQL SERVER – ERROR Messages – sysmessages error severity level

April 25, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server Security

SQL Server ERROR Messages explained: each has a number, a severity level and a state from 1 to 127, and all of them are stored in the sysmessages system table.

Read More
Previous 1 … 560 561 562 563 564 565 566 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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