How to view the SQL Server stored procedure from linked server?

时间:2018-06-05 05:05:30

标签: sql-server stored-procedures linked-server

Anyone has the idea how to get this through?

I have a production and a test server. I created a linked server of production on the test server machine. I can do all DML that affects the production server from the test server, but I cannot see the stored procedure object of the production server on the test server.

RPC and RPC Out is already True.

1 个答案:

答案 0 :(得分:0)

我希望这会对你有所帮助。 使用sp_HelpText可以获得整个SP文本。

EXEC [ServerName].[DatabaseName].dbo.sp_HelpText 'SPName'