Executing Stored Procedures with Parameters from QE

Last reviewed: November 2, 1994
Article ID: Q74240

SUMMARY

You may supply parameters when executing a stored procedure from Q+E. The name of the stored procedure must be followed by a space and then the first parameter. Additional parameters must be separated by spaces and listed in order.

MORE INFORMATION

Note: You must be using Q+E version 2.5 or later to access a SQL Server.

When you choose Open from the File menu and select SQLServer as the Source, Q+E will display the names of all available tables and stored procedures to which you have access. The name of each stored procedure will be preceded by the at sign (@).

The following example executes the stored procedure sp_addlogin and adds the login id "tester":

  1. Start Q+E.

  2. From the File menu, choose Logon.

  3. Log on to a SQL Server.

  4. From the File menu, choose Open.

  5. Select SQLServer for the source.

  6. Choose the master database.

  7. Select @sp_addlogin from the from Table List.

  8. After "@sp_addlogin" in the Table Name box, enter a space and then "tester" (without the quotation marks).

  9. Choose OK.

Q+E will display an alert telling you that the command was completed.

For more information on stored procedures, see your SQL Server documentation.


KBCategory: kbother
KBSubcategory:

Additional reference words: noupd


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.