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
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
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
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
A goldfish in a bag floating in a new aquarium while a hand checks the water with a thermometer

Finding Edition-Bound Features With sys.dm_db_persisted_sku_features

January 15, 2019
Pinal Dave
SQL Tips and Tricks
DBA, SQL DMV, SQL Licensing, SQL Migration

Use sys.dm_db_persisted_sku_features before an edition move, inventory databases, and distinguish feature evidence from licensing checks.

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
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
Previous 1 … 89 90 91 92 93 94 95 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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