
EXECUTE (Transact-SQL) - SQL Server | Microsoft Learn
Applies to: SQL Server 2019 (15.x) and later versions. The following example passes a command string to an external data source pointing to a SQL Server instance. EXECUTE ( 'SELECT …
EXECUTE AS (Transact-SQL) - SQL Server | Microsoft Learn
Dec 17, 2024 · Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics. Sets the execution context of a session. By default, a session starts when …
Execute a Stored Procedure - SQL Server | Microsoft Learn
May 15, 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 …
EXECUTE AS Clause (Transact-SQL) - SQL Server | Microsoft Learn
This section describes SQL Server syntax for EXECUTE AS. Functions (except inline table-valued functions), stored procedures, and DML triggers: { EXEC | EXECUTE } AS { CALLER | SELF | …
EXECUTE (Transact-SQL) - SQL Server | Microsoft Learn
Jan 2, 2025 · -- Execute a stored procedure [ { EXEC | EXECUTE } ] procedure_name [ { value | @variable [ OUT | OUTPUT ] } ] [ ,...n ] [ ; ] -- Execute a SQL string { EXEC | EXECUTE } ( { …
EXECUTE (Transact-SQL) - SQL Server | Microsoft Learn
Jan 2, 2025 · -- Execute a stored procedure [ { EXEC | EXECUTE } ] procedure_name [ { value | @variable [ OUT | OUTPUT ] } ] [ ,...n ] [ ; ] -- Execute a SQL string { EXEC | EXECUTE } ( { …
Use sqlcmd - SQL Server | Microsoft Learn
Nov 22, 2024 · Submit a sqlcmd job either by specifying a single T-SQL statement to execute, or by pointing the utility to a text file that contains T-SQL statements to execute. The output is …
EXECUTE (Transact-SQL) - SQL Server | Microsoft Learn
Jan 2, 2025 · -- Execute a stored procedure [ { EXEC | EXECUTE } ] procedure_name [ { value | @variable [ OUT | OUTPUT ] } ] [ ,...n ] [ ; ] -- Execute a SQL string { EXEC | EXECUTE } ( { …
Execute SQL Task - SQL Server Integration Services (SSIS)
Oct 17, 2024 · Applies to: SQL Server SSIS Integration Runtime in Azure Data Factory. The Execute SQL task runs SQL statements or stored procedures from a package. The task can …
Execute user-defined functions - SQL Server | Microsoft Learn
Apr 26, 2024 · Execute a user defined function using Transact-SQL. Scalar functions must be invoked by using at least the two-part name of the function ( <schema>.<function> ). For more …