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 sunflower tied to a bamboo cane with twine knots marking its height, evenly spaced until one sits far higher.

Recording Table Row Counts Every Day

November 19, 2010
Pinal Dave
SQL Tips and Tricks
DBA, SQL Data Storage, SQL DMV, SQL Server Agent

Recording table row counts each day creates a useful SQL Server trend when a scheduled job, history table, and change review support it.

Read More
The cover of a book.

SQL SERVER – History of SQL Server Database Encryption

November 17, 2010
Pinal Dave
SQL Tips and Tricks
SQL PASS, SQL Server Encryption, SQLAuthority Book Review

Michael Coles, co-author of Expert SQL Server 2008 Encryption, let me share his history of SQL Server database encryption, starting from SQL Server 2000.

Read More
SQL SERVER - Information Related to DATETIME and DATETIME2

SQL SERVER – Information Related to DATETIME and DATETIME2

November 15, 2010
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Scripts

A reader comment explains the precision issue between DATETIME and DATETIME2: values lose precision when converted between types. Here is the workaround.

Read More
A filing cabinet drawer propped open by a wooden wedge, a coat still hanging on the chair pushed up against it.

SQL SERVER – FIX ERROR 3702 Cannot drop database “MyDBName” because it is currently in use

November 14, 2010
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server

Error 3702: cannot drop database because it is currently in use. Set it to SINGLE_USER WITH ROLLBACK IMMEDIATE, then drop it. Best kept for demo servers.

Read More
SQL SERVER - Get All the Information of Database using sys.databases

SQL SERVER – Get All the Information of Database using sys.databases

November 12, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts

A handy script from Matteo that uses sys.databases to show plenty of database information, like status, data and log file counts and their sizes in MB.

Read More
A garden kneeler with new side handles beside an old muddy folded sack, a red trowel on its pad

CURRENT_DATE, || and Other Small T-SQL Changes in SQL Server 2025

November 11, 2010
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server, SQL String

Use CURRENT_DATE, string concatenation, optional SUBSTRING length and bigint DATEADD in SQL Server 2025 with clear examples and checks.

Read More
Database name backup start date.

SQL SERVER – Get Database Backup History for a Single Database

November 10, 2010
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts

A reader script by aasim abdullah to get database backup history for a single database: backup file, size, time taken, LSNs and the type of each backup.

Read More
Previous 1 … 414 415 416 417 418 419 420 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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