Results 1 to 4 of 4

Thread: [RESOLVED] [2.0] Dataset question...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    Resolved [RESOLVED] [2.0] Dataset question...

    I am written the following code that will call oracle stored proc and the results are captured in a dataset.

    In my new requirements, I need to call one more stored proc add the results from that procedure to the same dataset (may be a new table). so when I go thru this dataset I will have two datatables

    How can add the results of the second stored proc to the same dataset (aDataSet)?

    thanks

    nath

    OracleParameter ps1 = new OracleParameter("io_cursor", OracleType.Cursor);

    ps1.Direction = ParameterDirection.Output;


    OracleParameter[] param = { ps1 };

    aDataSet = aDataBase.ExecuteDataSet("ReconcileHarmdm", param);

    return aDataSet;

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: [2.0] Dataset question...

    Code:
    			DataSet ds1 = new DataSet();
    			ds1.Tables.Add("Table1");
    			DataSet ds2 = new DataSet();
    			ds2.Tables.Add("Table2");
    
    			ds1.Merge(ds2);
    			Console.WriteLine(ds1.Tables.Count);

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    Re: [2.0] Dataset question...

    thank you wild bill.
    nath

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] [2.0] Dataset question...

    Why not use both dataadapters to fill the same dataset, just different tables within it?

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