The SQL EXEC keyword is used to execute stored procedures or functions in a database management system.
The following SQL runs a stored procedure named “SelectAllCustomers”: