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
Displaying data in SQL Server Management Studio.

SQL SERVER – Simple Script to Match Session ID to OS Thread ID

January 26, 2018
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, Windows

How is a SQL Server Session ID mapped to an OS Thread ID? Here is a simple script to match Session ID to OS Thread ID, with the scheduler and task state.

Read More
SQL Server Host Info Query.

SQL SERVER – DMV to Get Host Information – sys.dm_os_host_info

January 20, 2018
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, Windows

SQL Server now runs on Linux too, so I check the host first in health checks. Here is how the DMV sys.dm_os_host_info returns Host Information about the OS.

Read More
SQL SERVER - Backup to URL error: Operating system error 50(The request is not supported.)

SQL SERVER – Backup to URL error: Operating system error 50(The request is not supported.)

December 2, 2017
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Error Messages, SQL Server, Windows

Backing up a database to Azure gave me a backup to URL error: Operating system error 50, the request is not supported. Here is the cause and the fix.

Read More
SQL SERVER - Error While Enabling Windows Feature: NetFx3, Error Code: 2146498298

SQL SERVER – Error While Enabling Windows Feature: NetFx3, Error Code: 2146498298

November 14, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Installation, Starting SQL, Windows

A SQL Server 2012 install failed with an error while enabling windows feature NetFx3. Here are the steps to turn on .NET Framework 3.5 in Server Manager.

Read More
SQL SERVER - FIX: Msg 5123, Level 16 - CREATE FILE Encountered Operating System Error 5

SQL SERVER – FIX: Msg 5123, Level 16 – CREATE FILE Encountered Operating System Error 5

September 21, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, Windows

This blog is about another common error reported by many DBA to me. He faced error related to create file in OS.

Here is the text of the message.

Read More
Gouache painting of a violin lying in an oversized cello case beside an empty vermilion violin case

Rename MDF File Extension in SQL Server, Step by Step

September 2, 2017
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, Windows

To rename MDF file extension values safely, take the database offline, tell SQL Server the new file name, rename the file on disk, and bring the database online. This post walks through the four steps on a demo database. It also explains the RECOVERY_PENDING state you see when the two names don’t match.

Read More
SQL SERVER- Error: 18204, Severity: 16 - Backup Failure - Operating System Error 1240 (The Account is not Authorized to Log in From This Station)

SQL SERVER- Error: 18204, Severity: 16 – Backup Failure – Operating System Error 1240 (The Account is not Authorized to Log in From This Station)

May 23, 2017
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Error Messages, SQL Server, Windows

A client’s backups to a file share failed at random with error 18204 and OS error 1240. The error message pointed to the real cause of this Backup Failure.

Read More
Previous 1 2 3 4 5 Next
  • Books
  • Testimonials
  • Privacy Policy

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