TRY CATCH with Linked Server in SQL Server 2005 Not Working

前端 未结 2 595
一生所求
一生所求 2021-01-13 17:54

I am trying to catch sql error raised when I execute a stored procedure on a linked server. Both Servers are running SQL Server 2005.

To prove the issue I have creat

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-13 18:04

    This returns the error information locally:

    EXEC ('your.fullyqualified.storedprocname') AT YOUR_LINKED_SERVER;
    

提交回复
热议问题