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 library trolley carrying a small stack of old books toward a basement stairway, a gap left on the shelf.

Archiving Old Rows to a History Table in Small Batches

February 3, 2020
Pinal Dave
SQL Tips and Tricks
Batch, Output Clause, SQL Delete, SQL Server, SQL Transactions

Make archiving old rows atomic with DELETE OUTPUT, preserved source identifiers, bounded batches, reconciliation, and a job time limit.

Read More
A flowerpot tipped back beside a cottage front door, showing a spare house key hidden underneath.

Connection Strings Explained: Encrypt, TrustServerCertificate and Timeouts

February 1, 2020
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL Server, SQL Server Encryption, SQL Server Security

Explain TrustServerCertificate, encryption modes, connection and command timeouts, listener failover, and server-side connection evidence.

Read More
Gouache painting of a row of hourglasses of different sizes on a windowsill, some with vermilion sand and some with pale sand

SQL Job Schedules: Read Every Schedule in Plain English

January 31, 2020
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Agent, System Database

SQL job schedules are stored as codes, and even the built-in description shows a time such as 60000. This post builds four demo jobs with five schedules and decodes every one with a single query. It also shows shared schedules, disabled schedules and jobs with no schedule at all.

Read More
Gouache painting of a row of garden plots each with its own tool leaning beside it, one rake vermilion

List All Jobs With Owners in SQL Server Agent

January 30, 2020
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server Agent, SQL Server Security

To list all jobs with owners, read the job table in msdb and resolve each owner with a join that keeps jobs without a login. This post builds four demo jobs, shows how a common query hides one of them, and reassigns jobs safely. It ends with a cleanup script.

Read More
Gouache painting of a wooden music box with a long vermilion perforated paper strip curling down to the floor

Additional Logging for SQL Server Agent: Three Methods

January 28, 2020
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Log, SQL Scripts, SQL Server Agent

Additional logging for SQL Server Agent means raising the Agent error log level, so the Agent writes more lines about its own work. This post reads the current level, changes it with T-SQL and restores it in the same script, and shows the Management Studio and registry routes.

Read More
Gouache painting of a grid of pale blue mosaic tiles in a wooden frame with one vermilion tile

Display Rupee Symbol in SSMS and T-SQL With FORMAT

January 27, 2020
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server Management Studio, Unicode

To display rupee symbol and Indian digit grouping in SSMS, format the number with an Indian culture, or use the Unicode character 8377. This post compares en-IN, hi-IN, gu-IN and kn-IN, shows the nvarchar rule that keeps the symbol from turning into a question mark, and formats dates for the same cultures.

Read More
A rack of lake water samples at dawn, one cloudy tube marked with a red clip.

Capturing sp_WhoIsActive Snapshots to a Table Every Minute

January 24, 2020
Pinal Dave
SQL Tips and Tricks
DBA, SQL Monitoring, SQL Server, SQL Server Agent

Capture sp_WhoIsActive snapshots every minute, keep seven days, and query past blockers and long requests from a logging table.

Read More
Previous 1 … 60 61 62 63 64 65 66 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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