SQL Server Jobs Permission

You can give your users rights to check if reports have run or jobs are complete without granting full admin rights. Here’s how you can do so by using SQLAgentReaderRole in SQL Server. If you have several SQL Agent jobs on your system, it is inevitable that at some point in some of your in-house... » read more

SSRS Semantic modeling language (SMDL)

Semantic Modeling Language (SMDL) SQL Server 2016+ SMDL models were deprecated as of the release of SQL Server 2014, the ability for them to function was still there. SSRS 2016 or later doesn’t support the Report Models feature. Uploading and managing report models is a discontinued feature on SQL Server 2016 (is no longer a... » read more

TDE Certificate Expiration and Replacement

A certificate used in TDE will continue to work even after its expiration date. This is because the Database Encryption Key (DEK) in the user database is the key that encrypts the data at rest. DEK is the symmetric key stored in the user database boot record. The certificate which is stored in the master... » read more

Always On stuck in Synchronizing State

Issue: Databases keep being in a status “synchronizing”. Question mark in the icon for primary server. Answers: “Synchronizing” state is the normal, healthy state for an Asynchronous-commit replica. Asynchronous-commit replicas support only the manual failover mode. Moreover, because they are never synchronized, they support only forced failover. Asynchronous-commit replicas are never synchronized

Enable Promotion of Distributed Transaction for RPC for Linked Server

Also configured in the Linked Server Properties “Server Options” section called “Enable Promotion of Distributed Transactions for RPC”. ‘remote proc transaction promotion‘ is a new option on SQL Server 2008, which allows you to control whether or not you want to enlist remote stored procedure call in a distributed transaction. When this option is off (FALSE),... » read more

Troubleshooting Distributed Transaction Coordinator (DTC)

Make sure the “Distributed Transaction Coordinator” service is running in the Window Services. Make sure the Security settings is configured correctly in Windows Component Services. Make sure firewall is not being blocked in the “Allow apps to communicate through Windows Firewall” section of Windows Firewall Control Panel section. If SQL Server Linked Server is setup,... » read more

TSQL BEGIN DISTRIBUTED TRANSACTION

Specifies the start of a Transact-SQL distributed transaction managed by Microsoft Distributed Transaction Coordinator (MS DTC). Unlike a transaction on a local database, a distributed transaction involves altering data on multiple databases. Consequently, distributed transaction processing is more complicated, because the database must coordinate the committing or rolling back of the changes in a transaction as a self-contained unit. Sources: https://docs.microsoft.com/en-us/sql/t-sql/language-elements/begin-distributed-transaction-transact-sql?view=sql-server-ver15

Linked Server unable to begin a distributed transaction

Error: Fix: Make sure the “Enable Promotion of Distributed Transaction” is set to “False” on the linked server property. ‘remote proc transaction promotion‘ is a new option on SQL Server 2008, which allows you to control whether or not you want to enlist remote stored procedure call in a distributed transaction. When this option is off... » read more

The partner transaction manager has disabled its support for remote/network transactions.

Error: OLE DB provider “SQLNCLI11” for linked server “xxxxxx” returned message “The partner transaction manager has disabled its support for remote/network transactions.”. Msg 7391, Level 16, State 2, Procedure dbo.xxxxxx, Line 1 [Batch Start Line 14] The operation could not be performed because OLE DB provider “SQLNCLI11” for linked server “xxxxxx” was unable to begin... » read more

Always On and Database Backup

Database backup will not happen on the primary server unless you specific in the “Backup Preferences” of Availability Group Properties. Note: Default is set to “Prefer Secondary”. When setting up database backup via maintenance plan, the job will still run and report success, however the backup files will not be created because the fn_hadr_backup_is_preferred_replica(‘MyDB’) flag... » read more