SQL Server Extended Stored Procedure