Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filling tables in a dataset
Message
From
18/05/2006 13:02:03
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01123034
Message ID:
01123293
Views:
23
LOL ... I don't think that came out the way I meant it. <g> I didn't mean it to sound like "Well, if you don't believe me, then experiment yourself. Harumph!". What I really meant by that was that most often experimenting with simple things is the best way to learn stuff. And writing out the DataSet to an XML file is a pretty easy way to see what you're actually getting back from the Stored Proc.

Glad I could help. =)

~~Bonnie


>>>>A Stored Proc will always return your tables with the names: table, Table1, Table2, etc. Typically you are not going to want to reference the tables that way in your DataSet. There are two ways around this problem.
>>>
>>>Bonnie, thanks for the reply. Above you wrote: "table, Table1, Table2, etc." did you mean: "Table0, Table1, Table2, etc." or did you acctually mean Table without a number?
>>
>>Table without a number. Experiment if you like ... retrieve a DataSet from a Stored Proc that has multiple tables, then write it out to an XML file and take a look at it. You'll see the table names.
>>
>>~~Bonnie
>
>Lol I belive you. I just simply assumed that the first table also had a number and I didn't get my SP to work with my dataset. After re-reading your message I tried using Table and it worked. Thanks Bonnie.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform