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
An outdoor lamp remains connected to a remote source through an extension cable

How to Map Network Drive as Fixed Drive? – Interview Question of the Week #258

January 5, 2020
Pinal Dave
SQL Interview Questions and Answers
Computer Network, SQL Command, SQL Scripts, SQL Server, SQL Stored Procedure

Question: How to Map Network Drive as Fixed Drive in SQL Server?
love little problems like this one as they are indeed a lot of fun to resolve. 

Read More
A single made-up guest bed facing a long row of sleeping bags in the hall.

Table Variable Deferred Compilation: Before and After SQL Server 2019

January 4, 2020
Pinal Dave
SQL Performance
Execution Plan, SQL Performance, SQL Server 2019, Temp Table

Compare table variable deferred compilation at compatibility levels 140 and 150, then decide when a temporary table gives better estimates.

Read More
Title card: Backed Up on a Server Running Version 15.00.2000

SQL SERVER – SQL Azure Managed Instance Restore Error – The Database Was Backed Up on a Server Running Version 15.00.2000

January 3, 2020
Pinal Dave
SQL Tips and Tricks
SQL Azure, SQL Backup and Restore, SQL Error Messages, SQL Server

One of my clients migrated to SQL Azure Managed Instance and contacted me for an interesting situation. Let us resolve Restore Error.

Read More
Gouache painting of a vermilion triangle block resting in a wooden ring beside sage cubes and cream rings on a playroom rug

ISNUMERIC Function Returns 1 for 12e5: What to Use Instead

January 2, 2020
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL String

The ISNUMERIC function returns 1 for strings that are not plain numbers, such as 12e5, a lone dollar sign and a lone plus. This post shows what it accepts, why, and which tests to use instead. It covers TRY_CAST and its blank string quirk, TRY_PARSE, and the digit pattern checks readers suggest.

Read More
Gouache painting of four garden tools hanging on a rail, the second one a vermilion trowel and the others grey and sage

Parameter Sniffing Fixes Compared: Which One to Use

January 1, 2020
Pinal Dave
SQL Performance
Parameter Sniffing, Query Hint, Recompile, SQL Scripts, SQL Stored Procedure

Parameter sniffing fixes compared on one table show a clear order, from a cheap guess to a better index. This post runs the plain procedure, a local variable, OPTIMIZE FOR UNKNOWN, a scoped setting, OPTION (RECOMPILE) and a covering index on the same skewed table, and prints the page reads of each in both call orders.

Read More
Gouache painting of a fresh pattern sheet pinned on cloth with vermilion scissors beside a pile of crumpled old patterns

OPTION (RECOMPILE) Hint: When a Fresh Plan Pays Off

December 31, 2019
Pinal Dave
SQL Tips and Tricks
Parameter Sniffing, Query Hint, Recompile, SQL Scripts, SQL Stored Procedure

The OPTION (RECOMPILE) hint tells SQL Server to build a new plan every time a statement runs. This post measures the page reads it saves on skewed data, the compile cost it adds, the filtered index it unlocks, and how to apply it to one statement of a procedure.

Read More
Gouache painting of a brass tap with a vermilion wheel feeding a trough that runs past a row of young apple trees

Database Scoped Configuration: Turn Off Parameter Sniffing

December 30, 2019
Pinal Dave
SQL Performance
Parameter Sniffing, SQL Scripts, SQL Server Configuration, SQL Stored Procedure

A database scoped configuration lets you turn off parameter sniffing for one database with a single statement. This post measures a procedure with the setting on and off, shows that the change clears the cached plans of the database, and explains what the switch does not fix.

Read More
Previous 1 … 129 130 131 132 133 134 135 … 843 Next
  • Books
  • Testimonials
  • Privacy Policy

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