September 2010
Intermediate to advanced
1704 pages
111h 8m
English
Executing a stored procedure is possible via a linked server. The server hosting the client connection accepts the client’s request and sends it to the linked server. The EXECUTE statement must contain the name of the linked server as part of its syntax:
EXECUTE servername.dbname.owner.procedure_name
The following example executes the sp_helpserver system stored procedure on the linked server 'DBARCH-LT2\SQL08DE01', which simply shows the server configuration information on that remote server:
EXEC [DBARCH-LT2\SQL08DE01].[master].[dbo].[sp_helpserver]
Read now
Unlock full access