Errorlog Configuration Problem When Upgrading SQL Server

Problem: This morning when working with one of my SQL Server servers, I went looking for an error log from last August.  After finding that I was only able to … Continue Reading →

Cannot Alter the Schema – Msg 15151, Level 16, State 1, Line 1

A rookie developer reached out to me requesting help to move a couple of tables to a new schema.  Thinking the developer did not have permissions to the one of … Continue Reading →

Finding Errorlog File Directory in SQL Server

Working with some new monitoring software, I need to locate the directory of the SQL Server’s Errorlog.  This location is not standard and differs by each version of SQL Server.  … Continue Reading →

Quickly Enable the Query Store for a SQL Server Database

Probably the fastest way to enable Query Store for a database is run the “ALTER DATABASE” command in a query window. First check that the database is not already have … Continue Reading →

‘fdhost.exe’ Process Is Not Controlled By The Update Wizard

When applying a hotfix update to SQL Server 2012, the step where “Check File In Use” produced the following error: The ‘fdhost.exe’ process is not controlled by the update wizard. … Continue Reading →

Error: 9002, Severity: 17, State: 4 – The transaction log for database ‘tempdb’ is full due to ‘ACTIVE_TRANSACTION’

Problem: This was a compound problem I had on a production SQL Server 2014 instance.  First was someone who scheduled a couple of load jobs at the same time which … Continue Reading →

List Query Store Enabled Databases in SQL Server

This query will bring back only those databases where the Query Store is enabled in the SQL Server instance. — Show All Query Store Enabled Databases select name as ‘DATABASE … Continue Reading →

Query Store Information Missing In SQL Server Management Studio (SSMS)

If the Query Store, from an SQL Server 2016 instance or greater, information is missing, it may be because the version of the SQL Server Management Studio is not at … Continue Reading →

Changing the SQL Server Default Collation Without Reinstall or Rebuilding the Master Database

Warning: this method of changing SQL Server’s default collation is not supported by Microsoft The issue was an instance of SQL Server was installed with the default collation (SQL_Latin1_General_CP1_CI_AS), and … Continue Reading →

Is Trace Flag 8001 still relevant

After reading an old article about the SQL Server DMV sys.dm_os_wait_stats running on SQL Server 2005.  I learned about the undocumented trace flag 8001, which enables all the wait types … Continue Reading →