B
Brandon Fraser
Hi All,
Does anyone know how to do this or give an idea how can I achieve this using
DataSet and ADO.NET
For example I have 2 table relationships.
Table1 -> Customer
Table2 -> CustomerOrder
The name should be pretty much self explanatory. I want to create a stored
proc that returns the customers and the customer's order given a some
parameter. And the content should be stored in different DataTable inside a
DataSet.
First question: How do I create a stored proc that returns 2 different
tables? Can I do this in MS SQL Server?
Secondly how do I populate the DataSet with the two different DataTables?
I'm trying to avoid two stored proc call for populating the two different
DataTable in my DataSet.
Thanks,
Brandon
Does anyone know how to do this or give an idea how can I achieve this using
DataSet and ADO.NET
For example I have 2 table relationships.
Table1 -> Customer
Table2 -> CustomerOrder
The name should be pretty much self explanatory. I want to create a stored
proc that returns the customers and the customer's order given a some
parameter. And the content should be stored in different DataTable inside a
DataSet.
First question: How do I create a stored proc that returns 2 different
tables? Can I do this in MS SQL Server?
Secondly how do I populate the DataSet with the two different DataTables?
I'm trying to avoid two stored proc call for populating the two different
DataTable in my DataSet.
Thanks,
Brandon