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
sqlcmd mode

SQL SERVER Management Studio and SQLCMD Mode

April 30, 2020
Pinal Dave
SQL Tips and Tricks
SQL Download, SQL Scripts, SQL Server, SQL Server Management Studio, sqlcmd, Testing

Honestly, there is an alternative way to quickly use SSMS SQLCMD mode as a development environment, let us learn about it today. 

Read More
Gouache painting of a wooden spoon with a vermilion handle beside a big cream stand mixer

sqlcmd vs SSMS: How to Time the Same Loop Fairly

April 29, 2020
Pinal Dave
SQL Performance
Command Line, SQL Scripts, SQL Server Management Studio, sqlcmd, Testing

A sqlcmd vs SSMS timing is fair only when both tools run the same file. The clock must sit inside the script. This post times 10,000 inserts three ways with a log table, shows what changed and what didn’t, and lists the settings to match before you compare.

Read More
Gouache painting of a grey wheelbarrow of pumpkins beside a vermilion tractor on a farm track

oStress vs SSMS: What Each Tool Is Built to Measure

April 28, 2020
Pinal Dave
SQL Performance
Command Line, SQL Scripts, SQL Server Management Studio, Testing

oStress vs SSMS is not a race, because the tools measure different things. This post times 10,000 inserts in three ways with a clock inside the script, then shows how eight sessions finish the same work faster. It explains what a one-session loop really measures.

Read More
Gouache painting of a plank bridge over a brook loaded with sandbags, the top one vermilion

oStress Load Test: Run Many Sessions Against SQL Server

April 27, 2020
Pinal Dave
SQL Performance
Command Line, SQL Server, sqlcmd, Testing

An oStress load test runs one query from many connections at once, so you can watch SQL Server under a crowd. This post explains the main switches and runs a small first test with five connections. It also builds the same test with sqlcmd workers, for machines without oStress.

Read More
Gouache painting of a hose overflowing a full bucket onto a path beside a tap with a vermilion wheel

SSMS Command Timeout: What the Execution Time-out Does

April 23, 2020
Pinal Dave
SQL Tips and Tricks
SQL Extended Events, SQL Server Configuration, SQL Server Management Studio, Testing

The SSMS command timeout is the number of seconds a query window waits before it cancels a batch. This post lists the four places a time-out can come from and reproduces a client time-out with sqlcmd and PowerShell. It also shows how an Extended Events session proves that the client gave up.

Read More
A play kitchen shelf stocked with handmade felt food, many eggs, fewer carrots and one red felt fish.

Building Demo Data With GENERATE_SERIES

December 4, 2017
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Sample Database, SQL Server, Testing

Build demo data with GENERATE_SERIES, weighted categories, customer skew, random amounts, and validation that preserves repeatable tests.

Read More
A mature red geranium on a windowsill beside a small rooted cutting of it whose flower buds are pinched off.

Refreshing a Test Database From Production Safely

April 20, 2016
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Login, SQL Server Security, Testing

Plan refreshing a test database with isolated restores, safe paths, user repairs, data replacement, disabled outbound actions, and a log.

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

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