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 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 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
Gouache painting of a xylophone with one new red bar fitted into the middle of the row

How to Add Column at Specific Position in SQL Server

March 11, 2013
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server, SQL Server Management Studio

To add column at specific position in SQL Server, you have three tested options, because ALTER TABLE always adds the column last. This post shows a SELECT list, a view for loads and reports, and a full table rebuild. It also explains what the rebuild costs.

Read More
SQL SERVER - SSMS Does NOT Print NULL Values

SQL SERVER – SSMS Does NOT Print NULL Values

March 4, 2013
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Scripts, SQL Server, SQL Server Management Studio

Here is a very interesting question asked on the blog by Karthik. I really liked the question and I would like to discuss this here about SSMS doe snot Print NULL values. 

Read More
Gouache painting of a circular wooden card carousel feeding a selected blue card into a separate tray.

Cycle Clipboard Ring in SSMS: SQL in Sixty Seconds #045

February 27, 2013
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Scripts, SQL Server Management Studio, SQL Shortcut

To cycle clipboard ring entries in SSMS, press Ctrl+Shift+V after a paste. The clipboard ring is most useful when you copy several names, so this post uses T-SQL to build clean column lists and tests the QUOTENAME and STRING_AGG limits that break a paste.

Read More
Top 1 star from.

SQL SERVER – Shortcut to SELECT only 1 Row from Table

February 21, 2013
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio

Developers often select only 1 row to peek at what a table holds, but typing SELECT TOP 1 again and again is slow. I share a quicker shortcut for it.

Read More
Gouache painting of a jar of saved seeds beside a small red pot with a new green sprout on a garden bench

Restore a Database in SSMS: Step by Step

February 20, 2013
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server Management Studio

To restore a database in SSMS, right-click Databases, choose Restore Database, pick the backup file, name the destination and choose the recovery state. This post covers each page of the dialog, the tail-log error that stops overwrites, and the T-SQL for a full, differential and log restore chain.

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

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