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 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
A wooden toy train with its colored carriages uncoupled and laid in a straight line on the floor, engine at the front.

STRING_SPLIT and Its Ordinal Column

February 10, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server 2022, SQL String

STRING_SPLIT and its ordinal column preserve token positions when you request the third argument and sort by ordinal in SQL Server.

Read More
Gouache painting: two shallow pastry boxes sit end to end on a bakery counter, each holding a single row of identical tarts

smalldatetime: Minute Rounding Can Change the Day

February 9, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

smalldatetime does more than hide seconds. These explicit conversions show minute rounding and a midnight carry, with complete original timestamps retained.

Read More
SQL SERVER - Find the Size of Database File - Find the Size of Log File

SQL SERVER – Find the Size of Database File – Find the Size of Log File

February 8, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL System Table, Transaction Log

A quick script on sys.master_files to find the size of database file and log file in MB. Remove the WHERE clause to see every database on the server.

Read More
Previous 1 2 3 4 Next
  • Books
  • Testimonials
  • Privacy Policy

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