C# Store SPROC data in DataTable

I am calling a sproc which is returning three tables.  How do I store each in a datatable?
Who is Participating?
Kyle AbrahamsConnect With a Mentor Senior .Net DeveloperCommented:
You can look here:

Essentially create a dataset which is the result of your stored proc.

The dataset is an array of datatable which can then be accessed.
CipherISAuthor Commented:
Figured it out

protected DataSet myData = new DataSet();

myData.Tables[0].TableName = "T1";
myData.Tables[1].TableName = "T2";

Open in new window

CipherISAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for CipherIS's comment #a39574601

for the following reason:

figured it out
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Kyle AbrahamsSenior .Net DeveloperCommented:
This is exactly what my answer aluded to.
Jacques Bourgeois (James Burger)PresidentCommented:
CipherIS figured it out 3 hours after ged 325 gave the answer?

ged325 should have the points.
Kyle AbrahamsSenior .Net DeveloperCommented:
2nd time user is trying to close the question.  Please accept the solution.
Kyle AbrahamsSenior .Net DeveloperCommented:
Thanks all.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.