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 checkout belt with three groups of groceries split by red divider bars

GO Is Not T-SQL: Batches, Variable Scope and GO With a Count

May 11, 2013
Pinal Dave
SQL Tips and Tricks
Batch, SQL Scripts, SQL Server, sqlcmd

Learn why GO is not T-SQL, how batches reset variable scope, what GO 3 repeats, and how applications should send scripts safely.

Read More
One chapter lifted from a stack of printed pages, a ribbon marking its place

SQL SERVER – Interview Questions and Answers Sample Chapter Free Download – SQL in Sixty Seconds #050

April 24, 2013
Pinal Dave
SQL Interview Questions and Answers
Database, SQL in Sixty Seconds, SQL Scripts, sqlcmd

SQL in Sixty Seconds hits its 50th episode and a full hour of play time. To celebrate, get a free SQL Server Interview Questions and Answers sample chapter.

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
Sql server query tool window.

SQL SERVER – Exporting Query Results to CSV using SQLCMD

March 5, 2013
Pinal Dave
SQL Tips and Tricks
sqlcmd

A reader on Facebook asked how to export query results to CSV using SQLCMD. It is a very simple command, and I show it with an AdventureWorks2012 example.

Read More
A car raised on a jack in a sunny driveway, spare wheel and red brace laid out.

Rehearsing a master Database Restore on a Test Instance

February 16, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, sqlcmd, System Database

Rehearse a master database restore on a matching test instance, including single-user sqlcmd, automatic shutdown, and configuration checks.

Read More
SQL SERVER - Backup and Restore Database Using Command Prompt - SQLCMD

SQL SERVER – Backup and Restore Database Using Command Prompt – SQLCMD

February 8, 2013
Pinal Dave
SQL Video
SQL Backup and Restore, SQL in Sixty Seconds, SQL Scripts, SQL Server, sqlcmd

Good DBAs automate the boring work. Here is a simple script to run Backup and Restore of a database from the command prompt with SQLCMD.

Read More
A screwdriver with a red bit in its handle beside an open case of spare bits.

SQLCMD Mode in SSMS: Variables, :CONNECT and :r Includes

January 12, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Management Studio, sqlcmd

Use SQLCMD mode in SSMS for server and database variables, :CONNECT, :r include files, and an error-stop release script.

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

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