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 plain stone sundial next to a sand hourglass with a vermilion frame

Current Timestamp in Python and SQL: One Format, Two Tools

September 23, 2021
Pinal Dave
SQL Tips and Tricks
Python, SQL DateTime, SQL Server

To get the current timestamp in Python, import datetime, call now and format the result with strftime. This post prints the same date and time in Python and in T-SQL, compares the two clocks, and shows how to ask for UTC in both.

Read More
A sushi rolling mat shaping ingredients outside their original bowls

sp_execute_external_script: Run Python Inside SQL Server

September 22, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, Python, SQL Server

Before you write any Python, check four switches. Here is how to read them, what error 39023 means, and what to test on your own server.

Read More
Gouache painting of a turning waterwheel at a mill while a vermilion wheelbarrow of grain climbs a long ramp

CPU Scheduler Waiting on Disk: Read Pending Disk IO

September 21, 2021
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Server

A CPU scheduler waiting on disk shows pending disk IO on its scheduler. This post reads sys.dm_os_schedulers once and in a short sampling loop, then confirms the result with file latency.

Read More
Illustrated cover: Troubleshooting High CPU

SQL SERVER – Troubleshooting High CPU

September 20, 2021
Pinal Dave
SQL Performance
SQL CPU, SQL Scripts, SQL Server

We are going to discuss Troubleshooting High CPU in SQL Server. This is why many hire me for Comprehensive Database Performance Health Check.

Read More
A jar of sourdough starter risen well above a red rubber band marking its earlier level.

Reading Performance Counters in T-SQL Without Misreading Them

September 17, 2021
Pinal Dave
SQL Performance
SQL Counter, SQL DMV, SQL Memory, SQL Monitoring

Read SQL Server performance counters with two timed samples, a proper ratio base, and a concise workload and memory dashboard.

Read More
Generate Script

Generate Script of SQL Server Objects – SQL in Sixty Seconds #184

September 16, 2021
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Server

Today we will see the same concept translating in the video. Let us learn about Generate Script of SQL Server Objects in video format.

Read More
Gouache painting: a wooden loom holding a half-woven linen runner in cream and sage, the last stretch unpicked into loose threads on the floor, with one vermilion knot marking where the finished cloth ends

SAVE TRANSACTION: Roll Back Half a Transaction

September 15, 2021
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Lock, SQL Stored Procedure, SQL Transactions

SAVE TRANSACTION sets a marker inside an open transaction. You can roll back to it and keep the earlier work. This post tests it on SQL Server 2025. It shows why a nested BEGIN TRAN can’t do the same and what XACT_STATE() returns after an error.

Read More
An inspection bridge observes a workpiece while separate holding mechanisms remain visible.

SQL SERVER – NOLOCK with DMVs

September 14, 2021
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Lock, SQL Scripts, SQL Server

NOLOCK with DMVs is not a blanket reassurance against monitoring waits. A customer asked about omitting the hint.

Read More
Hands tying kindling sticks into bundles with twine beside a handcart stacked with finished bundles

Aggregate Pushdown: Letting the Columnstore Scan Do the Summing

September 13, 2021
Pinal Dave
SQL Performance
ColumnStore Index, Execution Plan, SQL Performance, SQL Server

Verify aggregate pushdown in columnstore scans, inspect locally aggregated rows, and compare numeric aggregates with expressions.

Read More
The uppermost retained restoration folio is examined beside older preserved records.

SQL SERVER – Get Last Restore Date

September 10, 2021
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server

I report Restore Date from the latest retained msdb history row. My earlier query returned every matching entry.

Read More
Previous 1 … 36 37 38 39 40 41 42 … 590 Next
  • Books
  • Testimonials
  • Privacy Policy

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