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
Hands pressing clay into a wooden brick mold beside a row of identical fresh bricks drying

Keeping Admin Scripts One Click Away in SSMS Template Explorer

August 18, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server Management Studio, SQL Shortcut, SQL Utility

Organize SSMS Template Explorer scripts, fill reusable parameters, review a copy-only backup, and preserve custom templates on disk.

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 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
Gouache painting of a jumbled heap of pencils beside a neat row with a red pencil sharpener between them

Autocomplete and Code Formatting in SSMS: What Works Today

January 30, 2013
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Coding Standards, SQL Server Management Studio, SQL Shortcut

Autocomplete and code formatting save time and prevent mistakes when they are set up well. This post covers the IntelliSense features in SSMS, the reasons they stop working, a simple formatting style, and a tested look at what formatting changes in the plan cache.

Read More
Gouache painting of one long cream paper ribbon folding back and forth in neat even rows to fit inside a slate blue frame, with a vermilion bookmark at the first fold.

Wrap SQL Code in SSMS: SQL in Sixty Seconds #038

January 2, 2013
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Server Configuration, SQL Server Management Studio, SQL Shortcut

You can wrap SQL code in SSMS so long lines fit the window and you never scroll sideways. This post gives the exact menu path, what each option on that page does, a long query to test it with and a shortcut for switching it on and off.

Read More
Gouache painting of a row of potted herbs on two greenhouse shelves with the lead pot painted red

Copy Column Headers From SSMS Results to Excel

September 26, 2012
Pinal Dave
SQL Tips and Tricks
Excel, SQL Server Management Studio, SQL Shortcut, SQL Utility

To copy column headers from SSMS results, use Copy with Headers or press Ctrl+Shift+C. This post also shows the Options setting that includes headers every time, why a change can seem to do nothing, and how to stop Excel from dropping leading zeros.

Read More
SQL SERVER - Switch Between Two Parenthesis using Shortcut CTRL+]

SQL SERVER – Switch Between Two Parenthesis using Shortcut CTRL+]

July 13, 2012
Pinal Dave
SQL Tips and Tricks
SQL Shortcut

A reader shared a handy SSMS tip: press CTRL+] to switch between two parenthesis and jump from an opening bracket to its closing one in long queries.

Read More
Previous 1 2 3 4 5 Next
  • Books
  • Testimonials
  • Privacy Policy

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