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
Three wooden gauges with finite end stops and fitted measuring bars in a sunlit workshop.

Unsigned Integers: Safe Type and Range Mapping

July 12, 2010
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Datatype, SQL Migration, SQL Server

Map unsigned integers to SQL Server types without narrowing their range. Keep strict source-text validation separate from destination CHECK constraints.

Read More
Gouache painting: four pairs of cherries hang joined at the stem on a wooden rail

SUBSTRING Binary: Count Bytes Rather Than Characters

June 30, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Server

SUBSTRING binary offsets use byte units. Keep text slicing separate from encoded payload slicing and retain empty and missing cases.

Read More
SQL SERVER - Default Statistics on Column - Automatic Statistics on Column

SQL SERVER – Default Statistics on Column – Automatic Statistics on Column

June 28, 2010
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Server

Does a column need an index to have statistics? No. A quick demo shows automatic statistics on column data when AUTO_CREATE_STATISTICS is on.

Read More
Two trays pair a blue bowl with a cream jug and a blue jug with a cream bowl.

Count Distinct Pairs: Keep the Columns Together

June 27, 2010
Pinal Dave
SQL Tips and Tricks
Developer, SQL Distinct, SQL NULL, SQL Server, SQL Sub Query

Count distinct pairs by keeping their columns together. A small T-SQL example shows why concatenated labels can collide. Choose whether incomplete pairs belong in the count.

Read More
Gouache painting: beside a river, a thin reed clump and a dense tall one both lean left with the current

SIGN: Classify Positive, Negative and Zero Values

June 26, 2010
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Function, SQL Server

SIGN describes which side of zero an amount occupies. Preserve the original quantity and distinguish a zero value from missing input.

Read More
A compact first-aid tin stands open with neatly arranged plain bandage rolls on a shelf.

A Monthly Health Check You Can Run in Ten Minutes

June 25, 2010
Pinal Dave
SQL Performance
Best Practices, Database, SQL Scripts, SQL Server

Run a SQL Server health check that reviews backups, integrity-check evidence, file growth, users, build level, and space without guessing health.

Read More
SQLAuthority News - Guest Post - SELECT * FROM XML - Jacob Sebastian

SQLAuthority News – Guest Post – SELECT * FROM XML – Jacob Sebastian

June 23, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL XML

Getting NULL when reading a value from XML? Most of the time the XPath expression is wrong. A guest post by Jacob Sebastian on writing it correctly.

Read More
Previous 1 … 337 338 339 340 341 342 343 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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