You can run a stored procedure against your database to execute the SQL statements it contains and display the results in the Output window.
To run a stored procedure
The Output window is updated with status information as the stored procedure is run. The Output window also displays result sets and return values for the stored procedure. If any errors occurred during this process, the Server Errors dialog box displays a list of errors.
Note Microsoft® Visual Basic™ does not support executing stored procedures from the Data View window.