Results 1 to 2 of 2

Thread: Stored Procedure

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    92

    Stored Procedure

    Hi !

    I need an example of how to run through VB a stored procedure that place in my DB whuch return a record set.

    This stored procesdure get few (3) input values in order to run it.

    Thanks.

    I need the example which contain all.

  2. #2
    Addicted Member Nigh™a®e's Avatar
    Join Date
    Feb 2002
    Location
    Belgium
    Posts
    175
    Hi,

    This is easy,
    Use the SQLCommand and SQLConnection from the System.Data

    For the SQLCommand you can set the name of the Stored Proc, and add some input parameters

    Dont have the right code here, but tested with it.
    I created 1 function that has an SQLParameter() input,

    then you only have to set the parameters (input / output) and set the name of the procedure.

    I will provide the code of the function here tomorow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width