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 a cold cast-iron stove in a quiet cabin, kindling laid but unlit, with one vermilion box of matches on the hearth

Rarely Run Queries in SQL Server: What the First Run Pays

March 27, 2014
Pinal Dave
SQL Tips and Tricks
Recompile, SQL Cache, SQL Performance

Rarely run queries start with a plan that has left the cache. This test compiles a five table report procedure and measures the compile CPU on the first run, the second run, and a run after the cache was cleared. It also shows how to check whether a plan is still cached.

Read More
An image of a man smiling.

SQL SERVER – SSIS Execution Control Using Precedence Constraints – Notes from the Field #021

March 26, 2014
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SSIS

Tasks running in the wrong order in your SSIS package? Tim Mitchell reviews the essentials of precedence constraints for SSIS execution control.

Read More
Gouache painting: a tin-can telephone, two paper cups joined by a taut vermilion string stretched across a gap between a slate-blue windowsill and a sage-green doorway

Connect to MySQL From the Command Prompt: Host, Port, User

March 25, 2014
Pinal Dave
SQL Tips and Tricks
Command Line, MariaDB, MySQL, SQL Connection

To connect to MySQL from the command prompt, you pass a host, a port, a user and a password to the mysql client. This post runs every switch, then shows the exact error that a wrong port, user, password or database produces.

Read More
Execution plan for SQL server query.

SQL SERVER – Does Use of CTE Change the Order of Join in Inner Join

March 24, 2014
Pinal Dave
SQL Tips and Tricks
CTE, Execution Plan, SQL Joins

A reader said he uses a CTE to control join order. Does a CTE change the order of join in an inner join? Here is what I found.

Read More
A folded paper opens into an unlabeled branching route map beside a small red wooden toggle.

SQL SERVER – Turning On Graphical Execution Plan After Enabling ShowPlan Text

March 23, 2014
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio

Turning on graphical execution plan output requires resetting SHOWPLAN and checking the SSMS actual-plan option. These examples explain batch separators, estimated plans, and actual XML output.

Read More
A cork puller beside two evenly sealed bottles and one raised tilted cork

Assertion Queries: Data Checks That Should Return Zero Rows

March 22, 2014
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Sub Query, Testing

Let a short query find the order with no lines before a customer does. A small demo shows the failing keys, constraint error 547 and a clean repair.

Read More
One distinct red bead appears among separated members on a cotton cord.

MySQL – Search For Values Within A Comma Separated Values – FIND_IN_SET

March 21, 2014
Pinal Dave
SQL Tips and Tricks
MySQL

FIND_IN_SET searches a comma-separated string for a complete member and returns its position. I keep whitespace in that string deliberate.

Read More
Previous 1 … 443 444 445 446 447 448 449 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

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