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 fitted brass key engages the archive door lock while another key remains unused.

SQL SERVER – Connecting to Server Using Windows Authentication by SQLCMD

May 19, 2011
Pinal Dave
SQL Video
SQL Scripts, SQL Server, SQL Utility, sqlcmd

Windows Authentication by SQLCMD uses the current Windows identity with -E. It does not need a Windows password in the command.

Read More
Generate Scripts.

SQL SERVER – 2008 – 2008 R2 – Create Script to Copy Database Schema and All The Objects – Data, Schema, Stored Procedure, Functions, Triggers, Tables, Views, Constraints and All Other Database Objects

May 7, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Utility

Use the SQL Server script generator wizard to copy database schema, data and all objects, then run the large script with SQLCMD on the new instance.

Read More
Sqlcmd.exe window.

SQL SERVER – Running Multiple Batch Files Together in Parallel

March 6, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Utility

I needed SQL code running in parallel for a demo, so I used sqlcmd and start cmd.exe to run multiple batch files together. Can PowerShell do it better?

Read More
An analogue instrument panel of round gauges on a machine, one needle sitting in the red band.

SQL SERVER – Activity Monitor and Performance Issue

December 12, 2010
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Server, SQL Utility

A small story with a big moral about Activity Monitor and performance issue: a client left the tool open, and the monitor itself slowed the server down.

Read More
Two identical white eggs spinning on a kitchen counter, one smooth and one wobbling, a hand hovering above

The New Go-Based sqlcmd: What Changed

October 9, 2010
Pinal Dave
SQL Tips and Tricks
Command Line, SQL Server, SQL Utility, sqlcmd

The Go-based sqlcmd adds modern commands and contexts, but ODBC sqlcmd scripts need flag, output, and exit-code tests before a swap.

Read More
Results window in query analyzer.

SQL SERVER – Get Query Running in Session

October 1, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL System Table, SQL Utility

I forgot the simple syntax to get query running in session and ended up on my own old post. Here is the one method I use most during performance tuning.

Read More
A travel plug held in front of a wall socket of a different shape, with the right adapter resting on a shelf below

Fast Exports With bcp

July 18, 2010
Pinal Dave
SQL Tips and Tricks
Command Line, CSV, SQL Server, SQL Utility

Fast exports with bcp compares native and character files, shows a format file, and explains where batch size helps and how to check a large export.

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

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