Results 1 to 2 of 2

Thread: Multiply datasets

  1. #1

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539

    Multiply datasets

    OK

    ive got the following, which is part of my helper class
    USP_GetItemPrice is a parent stored proc is runs 3 other stored procs so i get 3 sets of data back

    how do i get data from the 2nd and 3rd data set with the below

    Pritty Urgent if any one can help

    VB Code:
    1. Dim MyConnection = OpenDataBase()
    2.             Dim MyCommand As SqlCommand = New SqlCommand
    3.             MyCommand.Connection = MyConnection
    4.             MyCommand.CommandText = "USP_GetItemPrice"
    5.             MyCommand.CommandType = CommandType.StoredProcedure
    6.             MyCommand.Parameters.Add("@p_Product", product)
    7.             MyCommand.Connection.Open()
    8.  
    9.             Dim myReader As SqlClient.SqlDataReader = MyCommand.ExecuteReader
    10.             Dim readerData As Decimal
    11.  
    12.             While myReader.Read
    13.                 readerData = myReader("Cost")
    14.             End While
    15.  
    16.             Return readerData
    17.             MyCommand.Connection.Close()
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  2. #2

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    its ok ive done it

    nextresult
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

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