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 of a wooden shape sorter box with matching blocks and one vermilion star block beside it

Find the Data Type of an Expression in SQL Server

January 23, 2019
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

To find the data type of an expression in SQL Server, pass it to SQL_VARIANT_PROPERTY or describe the whole query with sys.dm_exec_describe_first_result_set. This post tests both on a percentage calculation, shows how precision and scale come out, and explains why 2147483647 plus 1 fails.

Read More
Tightly rolled fleeces in a row on a barn floor, beside an open hamper of loose wool waiting to be rolled.

Columnstore Bulk Load: Why Batch Size Decides Where Rows Land

January 22, 2019
Pinal Dave
SQL Performance
ColumnStore Index, Data Warehousing, SQL Index, SQL Server

Review columnstore bulk load batch sizes, inspect delta and compressed rowgroups, and measure the cost of forcing small groups to compress.

Read More
SQL SERVER - FCB::Open Failed - TEMPDB Files Fail to be Created with Error: "CREATE FILE Encountered Operating System Error 3"

SQL SERVER – FCB::Open Failed – TEMPDB Files Fail to be Created with Error: “CREATE FILE Encountered Operating System Error 3”

January 21, 2019
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL TempDB

SQL Server would not start: FCB::Open failed because TempDB files could not be created, with operating system error 3. Here is how I fixed it.

Read More
An open garden gate allows passage while sturdy braces keep its frame stable

Does NOLOCK Really Applies No Lock? – Interview Question of the Week #209

January 20, 2019
Pinal Dave
SQL Interview Questions and Answers
Query Hint, Schema, SQL Lock, SQL Scripts, SQL Server

Does NOLOCK really applies no lock? No. NOLOCK takes a Sch-S, or schema stability, lock. Here is a simple script to see it for yourself.

Read More
Escargot tongs returning one shell from a deep vessel to a shallow plate

sp_executesql Output Parameters: Getting Values Back From Dynamic SQL

January 19, 2019
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, Output Clause, SQL Server

Dynamic SQL runs in its own scope, so a value only comes back if you ask twice. Here are the two mistakes that leave you with NULL.

Read More
A hand turning a heap of inside-out children's clothes right side out one by one to find a red jumper.

Implicit Conversions That Quietly Turn Seeks Into Scans

January 18, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Datatype, SQL Index, SQL Performance

Find implicit conversions in SQL Server plans, compare parameter and column types, and fix type contracts without losing Unicode data.

Read More
A garden hose nozzle with a red dial, one sharp jet and one wide gentle shower over flower beds

Catch-All Queries and Optional Parameter Plan Optimization in SQL Server 2025

January 18, 2019
Pinal Dave
SQL Performance
Dynamic SQL, Parameter Sniffing, Recompile, SQL Server

Compare catch-all queries with recompilation, parameterized dynamic SQL, and SQL Server 2025 optional parameter plan optimization.

Read More
Previous 1 … 179 180 181 182 183 184 185 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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