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
Open poultry shears sit around an empty gap beside a cut piece of chicken on a clean board

CHECK Constraints and NULL: Why Unknown Passes the Test

August 13, 2012
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Error Messages, SQL NULL, SQL Table Operation

Why does a CHECK (Quantity > 0) happily store a row with no quantity? Three-valued logic, a small demo, and the NOT NULL fix.

Read More
SQL SERVER - ERROR: FIX using Compatibility Level - Database diagram support objects cannot be installed because this database does not have a valid owner - Part 2

SQL SERVER – ERROR: FIX using Compatibility Level – Database diagram support objects cannot be installed because this database does not have a valid owner – Part 2

August 12, 2012
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Database diagram support objects cannot be installed on a database upgraded from SQL Server 2005? This time the fix was the compatibility level.

Read More
A nutcracker rests beside one walnut kernel and a much larger collection of its cracked shell pieces

Checking XML Index Size Against the Table It Belongs To

August 10, 2012
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL DMV, SQL Index, SQL XML

An XML index can outweigh the table it serves. Here is how I measure each XML structure next to the base table, and what to test before dropping one.

Read More
A garlic press handles one clove through its single chamber while whole garlic bulbs stay outside

Updatable Views: When INSERT and UPDATE Work Through a View

August 9, 2012
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Error Messages, SQL Table Operation, SQL View

A view is only a doorway to the table behind it. I show which writes get through, which get rejected, and why CHECK OPTION earns its place.

Read More
A carpet stretcher pulls ripples flat while the carpet remains uncut and keeps its existing edges

ALTER TABLE REBUILD: Fixing a Heap Without a Clustered Index

August 8, 2012
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Heap, SQL Index, SQL Table Operation

A heap with widening rows collects forwarded records. Here is how to measure them, fix them and know when the fix will not last.

Read More
A riveting tool aligns a new rivet with existing holes that preserve the old fastening positions

Explicit Identity Values: Loading Rows With Their Old Keys

August 7, 2012
Pinal Dave
SQL Tips and Tricks
Primary Key, SQL Identity, SQL Migration, SQL Table Operation

Moving rows and keeping their old keys? Here is the safe order of steps, and the counter check that saves you from a collision.

Read More
A willow swaying in the wind above a pond, its reflection trailing slightly behind the real branches.

Offloading Reports to a Readable Secondary

August 5, 2012
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL High Availability, SQL Reports, SQL Server

Readable secondary replicas can serve reports away from a SQL Server primary; learn routing, lag, licensing, and query differences to test.

Read More
Previous 1 … 355 356 357 358 359 360 361 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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