SQL Flow Field Guide

EXECUTE ... AT linked_server

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

pass-through execution on a linked server

What changes

Input
command string
Output or change
results from the linked server

Syntax at a glance

EXEC ( 'command' [ , arg ...n ] ) AT linked_server_name

Work example

A batch needs to execute a bounded statement through a named linked server.

Review the remote server, login mapping, and query text. Test with a non-sensitive source and confirm the remote owner approves the call.

Check your work EXECUTE ... AT linked_server. The request reaches the intended linked server and uses the reviewed login mapping.

Open Microsoft Learn for full syntax, permissions, and details for your version.