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 dump truck tipping a whole load of gravel onto a driveway at once

Minimal Logging for Bulk Loads

February 17, 2010
Pinal Dave
SQL Tips and Tricks
CSV, SQL Backup and Restore, SQL Log, SQL Server, Transaction Log

Minimal logging for Bulk Loads depends on recovery model, table shape, and locking; learn the prerequisites, tradeoffs, and how to verify a load.

Read More
Gouache painting of a row of prepared ingredient bowls beside an empty mixing bowl with a red whisk across it

Stored Procedure Optimization Tips That Still Matter

February 16, 2010
Pinal Dave
SQL Performance
Best Practices, SQL Coding Standards, SQL Stored Procedure

Stored Procedure Optimization comes down to a short list of habits you can test on your own server. This post builds one badly written procedure and one good one on a small orders table, then measures the difference in logical reads. It also covers parameter sniffing, the sp_ prefix, short transactions and error handling.

Read More
SQL SERVER - Difference Between Update Lock and Exclusive Lock

SQL SERVER – Difference Between Update Lock and Exclusive Lock

February 15, 2010
Pinal Dave
SQL Interview Questions and Answers
SQL Lock

What is the difference between Update Lock and Exclusive Lock? An Update Lock can sit on a row that has a Shared Lock, then turns Exclusive when it writes.

Read More
A glass coffee pot on a hotplate in a quiet diner, one freshly poured cup beside it with a thin wisp of steam.

Report Caching and Snapshots in SSRS

February 14, 2010
Pinal Dave
SQL Performance
Reporting Services, SQL Cache, SQL Reports, SQL Server

Report caching and snapshots in SSRS reduce repeated database work when freshness rules, parameter combinations, and schedules are clear.

Read More
A hand winding a mantel clock with a brass key

Backing Up SQL Server Express Without Agent

February 13, 2010
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Server Express, sqlcmd

Backing up SQL Server Express requires a BACKUP script, sqlcmd, Windows Task Scheduler, retention rules, and proof that restores work.

Read More
Two hands with scoops of vanilla and strawberry ice cream both reaching for the same single cone.

UPDATE With a JOIN: Changing Rows From Another Table Safely

February 12, 2010
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Joins, SQL Server, SQL Transactions

Use UPDATE with a JOIN safely, reject duplicate source keys, compare subquery and MERGE behavior, and verify the affected rows.

Read More
SQL SERVER - ALTER DATABASE dbname SET SINGLE_USER WITH ROLLBACK IMMEDIATE

SQL SERVER – ALTER DATABASE dbname SET SINGLE_USER WITH ROLLBACK IMMEDIATE

February 11, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts

Cannot drop a database because it is in use? SET SINGLE_USER WITH ROLLBACK IMMEDIATE rolls back open work first. Be careful with it on production.

Read More
Previous 1 … 660 661 662 663 664 665 666 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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