Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get one linked server property

I use SQL Server 2014, I also have a linked SQL Server configured on it, and I need to get a particular linked server property via TSQL. The property is 'remote proc transaction promotion'. I set this option through the next code

EXEC sp_serveroption 'LinkedServer', 'remote proc transaction promotion', 'FALSE'

but I do not know how I can read the value of this option via T-SQL. Any help is appreciated.

like image 344
Romano Avatar asked Feb 27 '26 00:02

Romano


1 Answers

The sys.servers system catalog view has a record for each registered linked or remote (for backward compatibility) server. The is_remote_proc_transaction_promotion_enabled column corresponds to the remote proc transaction promotion option of the sp_serveroption stored procedure. This column is of the bit data type, with true represented by 1 and false by 0.

select is_remote_proc_transaction_promotion_enabled from sys.servers where name = 'LinkedServer'
like image 166
userfl89 Avatar answered Mar 02 '26 16:03

userfl89



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!