This commit is contained in:
2024-08-23 16:57:05 +02:00
parent b0d0ede769
commit a0c7d14a63
14 changed files with 935 additions and 141 deletions

View File

@@ -0,0 +1,14 @@
USE master
DECLARE @LinkedServerName NVARCHAR(128)='ARIZONACASH';
DECLARE @Result INT;
BEGIN TRY
EXEC @Result = sp_testlinkedserver @LinkedServerName;
PRINT 'Linked server is online.';
END TRY
BEGIN CATCH
PRINT 'Linked server is offline or does not exist.';
SELECT ERROR_MESSAGE();
END CATCH;