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
Two loaves from the same recipe cool on a rack, one tall and golden, the other low and pale.

Comparing Server Settings Across Instances

November 15, 2007
Pinal Dave
SQL Tips and Tricks
DBA, SQL Server, SQL Server Configuration, SQL System Table

Comparing server settings across SQL Server instances shows configured and live values, so you can judge which differences affect a workload.

Read More
Red, blue and gray felt hats share different levels of a wooden display shelf.

TOP WITH TIES: Keep Every Row at the Cutoff

November 14, 2007
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Order By, SQL Scripts, SQL Server

TOP WITH TIES helps me keep equally qualified rows at a shortlist boundary. A unique ordering key changes that selection. Separate the cutoff rule from the final display order.

Read More
Two matching potted bay trees by a step, one clipped round and one grown lopsided with a stray branch.

Configuration Drift Between Servers

November 14, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, SQL Server, SQL Server Configuration

Find configuration drift between SQL Server instances, establish a baseline, and separate approved exceptions from settings that need repair.

Read More
A gouache inspection bench preserves one cracked ceramic vessel separately from intact vessels beside an inspection lens.

SQL SERVER – DBCC CHECKDB Introduction and Explanation – DBCC CHECKDB Errors Solution

November 13, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Server DBCC

DBCC CHECKDB checks database consistency. If it reports corruption, I preserve the output and establish the recovery options.

Read More
SQL SERVER - FIX : ERROR Msg 1803 The CREATE DATABASE statement failed. The primary file must be at least 2 MB to accommodate a copy of the model database

SQL SERVER – FIX : ERROR Msg 1803 The CREATE DATABASE statement failed. The primary file must be at least 2 MB to accommodate a copy of the model database

November 12, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Msg 1803: CREATE DATABASE failed because the primary file must be at least 2 MB to hold a copy of the model database. Make it larger than model and 512KB.

Read More
A knife leveling flour in the smallest of a set of measuring spoons

Decimal Precision and Rounding in SQL Server

November 12, 2007
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Datatype, SQL Function, SQL Server

Decimal precision in SQL Server controls arithmetic results and rounding; use explicit scales, test boundaries, and compare money with decimal.

Read More
SQL SERVER - FIX : ERROR Msg 5174 Each file size must be greater than or equal to 512 KB

SQL SERVER – FIX : ERROR Msg 5174 Each file size must be greater than or equal to 512 KB

November 12, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts

Msg 5174 says each file size must be greater than or equal to 512 KB, followed by error 1802. The fix is to create a database larger than 512KB.

Read More
A hand turning a spice grinder that turns whole peppercorns into fine powder

Hashing Data With HASHBYTES

November 11, 2007
Pinal Dave
SQL Tips and Tricks
ETL, SQL Function, SQL Server, SQL Server Encryption, SQL Server Security

HASHBYTES creates repeatable row fingerprints with SHA2 algorithms, but input encoding, NULL handling, and collision risk need a clear plan.

Read More
SQL SERVER - 2005 2000 - Search String in Stored Procedure

SQL SERVER – 2005 2000 – Search String in Stored Procedure

November 10, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure

Two scripts to search a string in stored procedure code, one for SQL Server 2000 using syscomments and one for SQL Server 2005, clearly labeled by version.

Read More
SQL SERVER - Versions, CodeNames, Year of Release

SQL SERVER – Versions, CodeNames, Year of Release

November 9, 2007
Pinal Dave
SQL Tips and Tricks

SQL Server codenames by year, from SQL95 and Hydra to Sphinx, Shiloh, Yukon and Katmai, with the version number for each release.

Read More
Previous 1 … 549 550 551 552 553 554 555 … 589 Next
  • Books
  • Testimonials
  • Privacy Policy

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