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
A wooden butter stamp pressing a flower pattern into butter, a row of identical stamped pats behind it.

Prepared Statements and Plan Reuse From Application Code

July 25, 2022
Pinal Dave
SQL Performance
Ad Hoc Query, Execution Plan, SQL Cache, SQL Server

Inspect prepared statements, handle lifetimes, parameter types, cached Prepared plans, and the limits of optimize for ad hoc workloads.

Read More
Man with sculptures and text.

Using Stored Procedure in SELECT – SQL in Sixty Seconds #193

February 15, 2022
Pinal Dave
SQL Video
Ad Hoc Query, SQL in Sixty Seconds, SQL Server, SQL Stored Procedure

Today we are going to learn about how Using Stored Procedure in SELECT. However, the easiest method to run the stored procedure.

Read More
A mechanism delivers shaped components into a matching tray for separate assembly work.

SQL SERVER – Capturing Stored Procedure Results with a Matching INSERT EXEC Table

February 8, 2022
Pinal Dave
SQL Tips and Tricks
Ad Hoc Query, SQL Server, SQL Stored Procedure

A stored procedure is not normally a table expression in a SELECT Statement. The question concerned rows from uspGetManagerEmployees.

Read More
Optimize for Adhoc

Optimize for Ad Hoc Workloads – SQL in Sixty Seconds #173

June 10, 2021
Pinal Dave
SQL Video
Ad Hoc Query, Execution Plan, SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Server Configuration

Today we are going to discuss if we should keep Optimize for Ad Hoc Workloads true or false. Let us see a detailed video about it.

Read More
Gouache painting of two identical teapots on separate shelves, one on a vermilion saucer

Same Query Plan, Different Cache Entry in SQL Server

June 2, 2021
Pinal Dave
SQL Performance
Ad Hoc Query, Execution Plan, SQL Cache, SQL Scripts

The same query plan can sit in the cache many times when query text changes by a space, a letter case or a comment. See it, measure it and learn how to share one entry.

Read More
Small retained shaping stubs remain distinct from a full reusable mold and working press.

SQL SERVER – AdHoc Queries and Optimize for Adhoc Workloads

April 16, 2021
Pinal Dave
SQL Tips and Tricks
Ad Hoc Query, SQL CPU, SQL Scripts, SQL Server, SQL Server Configuration

Optimize for AdHoc Queries reduces the first-use plan-cache footprint of ad hoc batches. A customer variable-query workload prompted testing.

Read More
Title card: Msg 15281: Ad Hoc Distributed Queries Blocked

SQL SERVER – FIX: Msg 15281 – SQL Server Blocked Access to STATEMENT ‘OpenRowset/OpenDatasource’ of Component ‘Ad Hoc Distributed Queries’

December 8, 2018
Pinal Dave
SQL Tips and Tricks
Ad Hoc Query, SQL Error Messages, SQL Scripts, SQL Server

Reading Excel, a reader got Msg 15281: SQL Server blocked access to STATEMENT ‘OpenRowset/OpenDatasource’. Enabling Ad Hoc Distributed Queries fixes it.

Read More
1 2 Next
  • Books
  • Testimonials
  • Privacy Policy

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