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
Gouache painting: on a garden path a smooth bent willow hoop arches over the ground

STCurveToLine: Convert Curves to Linear Approximations

March 21, 2011
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

STCurveToLine approximates circular curves with linear geometry. Compare curve, polygon, point, empty and NULL results by their type and state.

Read More
SQL SERVER - 2012 - Zoom Query Editor

SQL SERVER – 2012 – Zoom Query Editor

March 20, 2011
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Management Studio

The zoom query editor feature in SQL Server 2012 makes code large enough for presentations, group discussions or anyone who prefers big fonts.

Read More
SQL SERVER - Log File Growing for Model Database - model Database Log File Grew Too Big

SQL SERVER – Log File Growing for Model Database – model Database Log File Grew Too Big

March 19, 2011
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts

Why did the model database log file grow every day with no activity? The reader was backing up the model database every night. Here is the proof.

Read More
SQL SERVER 2008 - 2012 - Declare and Assign Variable in Single Statement

SQL SERVER 2008 – 2012 – Declare and Assign Variable in Single Statement

March 18, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts

Since SQL Server 2008 you can declare and assign variable values in one statement. This inline assignment saves lines of code, yet I rarely see it used.

Read More
Four pale ceramic bowls in two pairs, three empty and the front-right bowl filled with blue pebbles.

IS DISTINCT FROM: Compare Nullable Values Without Sentinel Values

March 17, 2011
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Scripts, SQL Server, SQL Server 2022

IS DISTINCT FROM compares nullable values without inventing a sentinel. Test two NULLs, one NULL and changed values, then use the predicate to find transitions that ordinary equality can miss.

Read More
Twelve unmarked wooden blocks in a row with a separate red end block.

GTIN-13 Check Digits: Validate the Final Digit in a CHECK Constraint

March 16, 2011
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Server

A GTIN-13 check digit validates a weighted checksum, not product identity. Test complete ASCII input, leading zeros and the final digit in a CHECK constraint, then see why some digit swaps still pass.

Read More
A detailed woodworking atelier shows one timber beam worked at two stations with coherent tools and careful joinery.

SQL Server Execution Plan Quiz: One Table, Two Operators

March 15, 2011
Pinal Dave
SQL Puzzle
Execution Plan, SQL Index, SQL Server

One table reference can produce Nested Loops, a Key Lookup and parallel operators in an execution plan. A controlled SQL example makes the work visible and shows why MAXDOP is a ceiling rather than a promise of parallel execution.

Read More
Previous 1 … 601 602 603 604 605 606 607 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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