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 hand tying small parcels into equal bundles with vermilion string in a post office loading bay.

BULK INSERT Batch Size and ROWS_PER_BATCH

September 1, 2024
Pinal Dave
SQL Tips and Tricks
Batch, CSV, SQL Log, SQL Server, SQL Transactions

Distinguish ROWS_PER_BATCH estimates from BULK INSERT commit batches, then review logging, locks, rejected rows, and atomic loading.

Read More
A flour-dusted kitchen floor at dawn with a trail of small mouse prints from the pantry door to a crumb.

Logging Agent Jobs That Call Stored Procedures

August 15, 2024
Pinal Dave
SQL Tips and Tricks
DBA, SQL Server, SQL Server Agent, SQL Stored Procedure

Improve logging Agent jobs with procedure run records, start and end events, captured errors, step output, and history correlation.

Read More
Two hands husking corn at a market stall, stripped husks heaped aside and clean cobs in a bowl.

Cleaning Currency Strings Into decimal Values

August 1, 2024
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Server, SQL String

Convert currency strings into decimal amounts using known symbols, explicit parsing cultures, conversion checks, and rejection evidence.

Read More
DATETRUNC

A Walkthrough – DATETRUNC Function in SQL Server

June 28, 2024
Pinal Dave
SQL Tips and Tricks
SQL DateTime

One such tool is the DATETRUNC function, introduced in SQL Server 2022. Let’s take a journey to understand how this function can simplify date handling.

Read More
A sloping egg rack at a market stall, one hand taking the oldest egg from the front, another adding a fresh one.

DELETE TOP With ORDER BY: Removing the Oldest Rows First

May 1, 2024
Pinal Dave
SQL Tips and Tricks
CTE, SQL Delete, SQL Order By, SQL Server, SQL Top

Use DELETE TOP safely through an ordered CTE, preview oldest rows, apply a supporting index, and remove eligible rows in bounded batches.

Read More
AI

#TSQL2sday Roundup: Has AI Helped You with Your SQL Server Job?

April 12, 2024
Pinal Dave
SQL Tips and Tricks
AI, TSQL2sday

Earlier, I hosted a TSQL2sDay on Has AI Helped You with Your SQL Server Job?. I had lots of fun reading various contributions.

Read More
Illustrated cover: AI-Assisted Tuning

#TSQL2sday: AI-Assisted Query Optimization in SQL Server

April 9, 2024
Pinal Dave
SQL Tips and Tricks
AI, TSQL2sday

For this month’s T-SQL Tuesday, I share my experience with AI-assisted query optimization: a generative AI tool suggested two alternatives to my query.

Read More
Previous 1 … 3 4 5 6 7 8 9 … 571 Next
  • Books
  • Testimonials
  • Privacy Policy

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