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 cookie jar with its lid askew and a trail of fresh crumbs on a kitchen counter, no one in sight.

Tracking Recent Object Changes With modify_date

March 31, 2014
Pinal Dave
SQL Tips and Tricks
DBA, SQL Audit, SQL System Table, System Object

Use modify_date to find recent SQL Server object changes, compare databases, and understand which audit questions need event capture.

Read More
An open bento box with neat compartments, one holding a row of small rice balls, a red plum on the rice.

JSON_OBJECT and JSON_ARRAY: Building JSON in SQL Server 2022

March 30, 2014
Pinal Dave
SQL Tips and Tricks
JSON, SQL Function, SQL NULL, SQL Server, SQL Server 2022

Build JSON_OBJECT and JSON_ARRAY values in SQL Server 2022, control null handling, nest arrays, and compare rowset and aggregate output.

Read More
A pumice stone is set aside so another hand can use the wooden handle

A Shrink That Stops Blocking Others: SHRINKFILE WAIT_AT_LOW_PRIORITY

March 29, 2014
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Lock, SQL Server DBCC

A shrink at 4 PM on Friday can block your whole app. See what the low-priority option does, and why shrinking is still a rare tool.

Read More
MySQL - Generate Script for a Table Using SQL

MySQL – Generate Script for a Table Using SQL

March 28, 2014
Pinal Dave
SQL Tips and Tricks
MySQL

SQL Server needs SSMS to build a CREATE TABLE script, but MySQL can do it in SQL. Here is how SHOW CREATE TABLE returns the script for a table.

Read More
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
Previous 1 … 438 439 440 441 442 443 444 … 845 Next
  • Books
  • Testimonials
  • Privacy Policy

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