
EXECUTE (Transact-SQL) - SQL Server | Microsoft Learn
Nov 18, 2025 · The EXEC or EXECUTE statement can be used to send pass-through commands to linked servers. Additionally, the context in which a string or command is executed can be explicitly set.
sp_executesql (Transact-SQL) - SQL Server | Microsoft Learn
Nov 18, 2025 · sp_executesql executes a Transact-SQL statement or batch that can be reused many times, or one that is built dynamically.
Execute a Stored Procedure - SQL Server | Microsoft Learn
Nov 18, 2025 · This article describes how to execute a stored procedure in SQL Server by using SQL Server Management Studio or Transact-SQL. There are different ways to execute a stored procedure.
EXECUTE AS (Transact-SQL) - SQL Server | Microsoft Learn
Dec 17, 2024 · When an EXECUTE AS statement is run, the execution context of the session is switched to the specified login or user name. After the context switch, permissions are checked …
Execute SQL Task - SQL Server Integration Services (SSIS)
Oct 17, 2024 · The Execute SQL task runs SQL statements or stored procedures from a package. The task can contain either a single SQL statement or multiple SQL statements that run sequentially.
sp_execute (Transact-SQL) - SQL Server | Microsoft Learn
Jun 23, 2025 · Executes a prepared Transact-SQL statement using a specified handle and optional parameter value. sp_execute is invoked by specifying ID = 12 in a tabular data stream (TDS) packet.
sys.dm_exec_sessions (Transact-SQL) - SQL Server
Dec 11, 2025 · Use sys.dm_exec_sessions to first view the current system load and to identify a session of interest, and then learn more information about that session by using other dynamic management …
EXECUTE AS Clause (Transact-SQL) - SQL Server | Microsoft Learn
Aug 28, 2025 · To execute a CLR module specified with EXECUTE AS that accesses resources in another database or server, the target database or server must trust the authenticator of the …
実行 (Transact-SQL) - SQL Server | Microsoft Learn
EXEC ステートメントまたは EXECUTE ステートメントを使用して、パススルー コマンドをリンク サーバーに送信できます。 さらに、文字列またはコマンドを実行するコンテキストを、明示的に設 …
sys.dm_exec_requests (Transact-SQL) - SQL Server
Nov 18, 2025 · This following example shows all currently running queries in your SQL Server data warehouse, excluding your own session (@@SPID). It uses CROSS APPLY with …