Description

The SQL keyword EXEC is used to execute a stored procedure, which executes the statements defined within the stored procedure.

The below SQL executes the "SelectAllCustomers" stored procedure.

EXEC SelectAllCustomers;

Similarly, the below SQL executes the "InsertAllCustomers" stored procedure.

EXEC InsertAllCustomers;

Related Links