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
SQL SERVER - Puzzle - Challenge - Error While Converting Money to Decimal

SQL SERVER – Puzzle – Challenge – Error While Converting Money to Decimal

November 27, 2010
Pinal Dave
SQL Puzzle
SQL Error Messages, SQL Scripts

A puzzle for you: why does converting money to decimal throw Msg 8115, an arithmetic overflow error, when you cast 12345.67 as DECIMAL(5,2)? Share your answer.

Read More
SQL SERVER - Challenge - Puzzle - Usage of FAST Hint

SQL SERVER – Challenge – Puzzle – Usage of FAST Hint

November 26, 2010
Pinal Dave
SQL Puzzle

When does the FAST hint help? It asks SQL Server to return the first rows quickly, yet my tests showed no change in time. Can you find a good example?

Read More
SQL SERVER - Concat Function in SQL Server - SQL Concatenation

SQL SERVER – Concat Function in SQL Server – SQL Concatenation

November 25, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL String

Is there a CONCAT function in SQL Server? An attendee said MySQL and Oracle have one. I show how the plus operator joins strings, numbers and column values.

Read More
Gouache painting: three positions along a tack room wall

geometry STIsEmpty: Empty Shapes Are Different From SQL NULL

November 24, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STIsEmpty tests whether an existing spatial instance has an empty point set. I keep that condition separate from SQL NULL. A missing database value and a present empty geometry are different inputs.

Read More
SQLAuthority News - SQLPASS Nov 8-11, 2010-Seattle - An Alternative Look at Experience

SQLAuthority News – SQLPASS Nov 8-11, 2010-Seattle – An Alternative Look at Experience

November 23, 2010
Pinal Dave
Personal
SQL PASS, SQLAuthority Author Visit

SQLPASS 2010 in Seattle was the best summit ever. Instead of the usual event report, here is an alternative look at my trip, travel stats and fun moments.

Read More
LIKE cardinality illustrated by clear jars containing different stone mixtures beside bowls on a rich apothecary bench.

LIKE Cardinality: String Statistics and Row Estimates

November 22, 2010
Pinal Dave
SQL Performance
SQL Performance, SQL Scripts, SQL Statistics

LIKE row estimates depend on the pattern, string statistics and compilation context. Compare estimated and actual matching rows in a controlled distribution, while keeping cardinality estimates separate from the chosen access path.

Read More
Database Properties - Perftest.

SQL SERVER – Change Database Access to Single User Mode Using SSMS

November 21, 2010
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio

I showed before how to set single user mode with T-SQL before a backup. You can also set single user mode using SSMS, from the database properties page.

Read More
Previous 1 … 618 619 620 621 622 623 624 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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