Home Docs Changelog Download Pricing Customer Portal Contact

How to call a SQLServer procedure in SQLMessenger?
I want to call a SQLServer procedure and get the query results. How should I set it up?
Yes, you can call procedures of SQLServer in SQLMessenger and retrieve query results from the procedures.

When calling a procedure, prepend the "exec" keyword to the procedure name in the statement. For example:

Enter a statement to call the stored procedure

Notes:

(1) If you want to retrieve data from a procedure, add the statement “SET NOCOUNT ON;” in the procedure; otherwise, SQLMessenger cannot obtain the data queried by the procedure.

(2) If multiple datasets are returned in the procedure, SQLMessenger can only process one of them. Therefore, please try not to return multiple datasets in a single procedure.

(3) SQLMessenger does not support out-type parameters of procedures. It is impossible to obtain the return value of the procedure through out-type parameters.

Last updated on March 17, 2026

Cookie Settings

We use cookies to enhance your browsing experience, serve personalized content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies in accordance with our Cookie Policy.

You can change your preferences at any time by clicking on "Cookie Settings" in the website footer.

Cookie Preferences

Manage your cookie preferences. You can enable or disable different types of cookies below. Necessary cookies cannot be disabled as they are required for the website to function properly.

Necessary Cookies

Always active

These cookies are essential for the website to function and cannot be switched off. They are usually only set in response to actions made by you such as setting your privacy preferences, logging in or filling in forms.

Preferences Cookies

Makes the site easier to use

These cookies allow the website to remember choices you make and provide enhanced, more personal features.

Analytics Cookies

Helps us improve our website

These cookies help us understand how visitors interact with our website, which helps us improve our products and services.

Marketing Cookies

Used to track visitors across websites

These cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging.

Leave us a message. Tell us what you need, and we'll take care of the rest.