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 an empty bowl and a stone-filled bowl on a balance, above matching empty and occupied wooden recesses.

ANSI_NULLS Puzzle and NULL in SQL Server: SQL in Sixty Seconds #052

May 29, 2013
Pinal Dave
SQL Video
SQL Deprecated Feature, SQL in Sixty Seconds, SQL NULL, SQL Scripts

This ANSI_NULLS puzzle starts with two queries that look alike, and only one returns a row. The tests here explain the NULL logic behind IN and NOT IN, show what SET ANSI_NULLS OFF still does on SQL Server 2025, and give a safer pattern for real queries.

Read More
Gouache painting of a row of wooden pegs with one red peg, an adjustable guide and empty holes ahead.

Reseed an Identity Column in SQL Server: SQL in Sixty Seconds #051

May 8, 2013
Pinal Dave
SQL Video
SQL Identity, SQL in Sixty Seconds, SQL Scripts, SQL Server DBCC

To reseed an identity column, run DBCC CHECKIDENT with the RESEED option. The tests here show which value comes next after existing rows, DELETE and TRUNCATE, and what happens when the new value collides with a key.

Read More
Gouache painting of an orderly wooden file box beside a worn blue divider isolated in a shallow tray.

Remove a Cached Connection in SSMS: SQL in Sixty Seconds #049

April 17, 2013
Pinal Dave
SQL Video
SQL Connection, SQL in Sixty Seconds, SQL Login, SQL Server Management Studio

To remove a cached connection from the SSMS Connect dialog, delete the entry from the Server name list. The tests here show that the list lives on the client, how three entries can reach one server, and how to check where an old entry points before you delete it.

Read More
Gouache painting of an old wall panel with one large toggle switch, its vermilion lever flipped up, on a cream plate.

Enable SQLCMD Mode in SSMS: SQL in Sixty Seconds #048

April 10, 2013
Pinal Dave
SQL Video
Command Line, SQL Connection, SQL in Sixty Seconds, SQL Server Management Studio, sqlcmd

To enable SQLCMD mode in SSMS, use the Query menu or set it as the default for new windows. This post tests :connect, :setvar, :r, !! and :on error exit with sqlcmd.exe on SQL Server 2025 and shows the Msg 102 error you get when the mode is off.

Read More
Gouache painting of two different travel power plugs facing one wall socket, with a small vermilion adapter resting between them.

Cannot Resolve the Collation Conflict (Msg 468): SQL in Sixty Seconds #047

April 3, 2013
Pinal Dave
SQL Video
SQL Collation, SQL Column, SQL Error Messages, SQL in Sixty Seconds

Cannot resolve the collation conflict is Msg 468, and it appears when two text columns use different collations. I reproduced it on SQL Server 2025 with a temp table, found the mismatched columns with a query and tested three fixes, from a COLLATE clause in the query to changing the column itself.

Read More
Procrastination

SQLAuthority News – How to Avoid Procrastination – Professional Development #001 – Video

March 20, 2013
Pinal Dave
SQL Video
Professional Development

The first video in our professional development series, led by Nupur Dave, is about how to avoid procrastination and stop putting things off.

Read More
Gouache painting of one long card sliding through a guide from an organized file box into a smaller tray.

SELECT a Single Row in SQL Server: SQL in Sixty Seconds #046

March 13, 2013
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Server Management Studio, SQL Shortcut, SQL Top

To SELECT a single row for a quick look at a table, set up an SSMS query shortcut that runs SELECT TOP 1. The tests here show which row comes back, how an index or a heap changes it, what it costs on a 200,000 row table and when to add ORDER BY.

Read More
Previous 1 … 17 18 19 20 21 22 23 … 26 Next
  • Books
  • Testimonials
  • Privacy Policy

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