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
Gouache painting of a white gift box tied with a vermilion ribbon bow on a pale counter

Unquoted Procedure Parameters: Are Single Quotes Optional?

December 10, 2020
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Stored Procedure

Unquoted procedure parameters work in SQL Server when the value is one plain word. This post builds a small procedure and tests which values fail without single quotes. It also shows how NULL, DEFAULT and numbers change the value.

Read More
database collation

Change Database and Table Collation – SQL in Sixty Seconds #145

December 8, 2020
Pinal Dave
SQL Video
SQL Collation, SQL in Sixty Seconds, SQL Server

I discussed the method to change the database and table collation with my client during the Comprehensive Database Performance Health Check.

Read More
A knife block with five large knives, beside one small pot holding all the smaller utensils bunched together.

Top N Plus Others: Grouping the Rest Into One Row

December 3, 2020
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL Group By, SQL Scripts, SQL Server, SQL Top

Create top N plus others summaries with deterministic category ranking, one remainder total, stable labels, and explicit display ordering.

Read More
infinite loop

Infinite Loop – SQL in Sixty Seconds #144

December 2, 2020
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Scripts, SQL Server

Lots of people wrote feedback about it and wanted me to explain in this video so I have built this new Video where I discuss Infinite Loop.

Read More
A relined cabinet remains distinct from drawers that retain their earlier linings.

SQL SERVER – Change Database and Table Collation

December 1, 2020
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Scripts, SQL Server

To Change Database collation, I separate its default from existing character-column settings. The customer moved from case-insensitive to case-sensitive behavior.

Read More
Gouache painting of a water wheel at a stream mill with a single vermilion bucket among gray ones

WHILE 1 = 1 Loop in T-SQL: Run Forever, Stop Safely

November 30, 2020
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Scripts, SQL Server

A WHILE 1 = 1 loop never ends on its own, so every one needs a planned exit. This post builds a once-a-second sampler with three ways out, a stop flag, a round limit and a time limit, then shows how to stop a loop from a second window and what the recursion limit does.

Read More
Gouache painting of a long curved sandy path around a lawn with a vermilion wheelbarrow standing on the grass

Default Query Shortcuts in SSMS: Alt+F1, Ctrl+1 and Ctrl+2

November 26, 2020
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Management Studio, SQL Shortcut

The default query shortcuts in SSMS are Alt+F1, Ctrl+1 and Ctrl+2, and each runs a system procedure on the text you select. This post shows what sp_help, sp_who and sp_lock return, why sp_lock has a better replacement, and which keys you can change.

Read More
Previous 1 … 33 34 35 36 37 38 39 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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