Creating Stored Procedures and User-Defined Functions with Managed