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
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 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
SQL SERVER - Export Data From SSMS Query to Excel

SQL SERVER – Export Data From SSMS Query to Excel

January 16, 2019
Pinal Dave
SQL Tips and Tricks
Excel, SQL Server, SQL Server Management Studio

This follow-up to copying results to Excel shows how to export data directly from an SSMS query to Excel using Results to File (CTRL + SHIFT + F).

Read More
SQL SERVER - FIX: Msg 8180 - Statement(s) Could not be Prepared. Deferred Prepare Could not be Completed

SQL SERVER – FIX: Msg 8180 – Statement(s) Could not be Prepared. Deferred Prepare Could not be Completed

January 14, 2019
Pinal Dave
SQL Tips and Tricks
Linked Server, SQL Error Messages, SQL Scripts, SQL Server

A linked server query with OPENQUERY gave Msg 8180: Statement(s) could not be prepared. Deferred prepare could not be completed. Here is what I learned and the fix.

Read More
A handcart carries a millstone from a crowded workshop to a roomier adjacent space

How to Move Log File or MDF File in SQL Server? – Interview Question of the Week #208

January 13, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Performance, SQL Scripts, SQL Server, Transaction Log

Question: How to Move Log File or MDF File in SQL Server? Here are the steps I use to move a busy LDF or MDF file to a quieter drive.

Read More
Parked cars along a curb seen from above with gaps between them, one wide enough for a car, one too short

Finding Free Time Slots in a Calendar With GENERATE_SERIES

January 12, 2019
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server, SQL Server 2022

Find free time slots with GENERATE_SERIES, exclude overlapping bookings, and merge busy intervals before calculating calendar gaps.

Read More
SQL SERVER - FIX: Msg 9514 - XML Data Type is Not Supported in Distributed Queries

SQL SERVER – FIX: Msg 9514 – XML Data Type is Not Supported in Distributed Queries

January 11, 2019
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Server 2019, SQL XML

Querying a table with an XML column over a linked server fails with Msg 9514: XML data type is not supported in distributed queries. Here is the fix.

Read More
Previous 1 … 93 94 95 96 97 98 99 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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