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

SQL SERVER – Copy Data From SSMS Query Result to Excel

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

How do you copy data from an SSMS query result to Excel? It is simple, but not everyone knows it: right-click the results and save them as a CSV file.

Read More
Gouache painting of a greenhouse wall with one clean pane and a vermilion squeegee on the sill

Clear the Plan Cache for a Single Database in SQL Server

January 9, 2019
Pinal Dave
SQL Performance
SQL Cache, SQL Scripts, SQL Server Configuration

To clear the plan cache for one database, use ALTER DATABASE SCOPED CONFIGURATION CLEAR PROCEDURE_CACHE in that database. This post tests it on two small databases, compares it with DBCC FLUSHPROCINDB and with freeing a single plan, and explains why DBCC FREEPROCCACHE is a bad habit.

Read More
Gouache painting of a three-legged stool with a vermilion wedge under its short leg

Reduce IO Waits in SQL Server: Read the Waits First

January 8, 2019
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Wait Stats

To reduce IO waits in SQL Server, first name the wait. This post explains the main IO wait types and measures two of them for a single session on a demo database. It then shows how to check file latency and which fix matches each wait.

Read More
Previous 1 … 186 187 188 189 190 191 192 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

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