Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filling dataset with SP with relational info
Message
De
09/11/2010 12:12:57
 
 
À
09/11/2010 12:00:25
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01488565
Message ID:
01488607
Vues:
31
>HI, Charles, I have some code that is a bit outdated (in the sense that it doesn't rely on the entity framework....just good old fashioned .NET generics and typed datasets).....but here's what it does:
>
>1) Suppose I have a typed dataset (call it dsOrders), with relations built in
>
>2) Suppose I have a stored procedure that I call (either with parameters or without) that retrieves multiple result sets
>
>3) I want to populate the typed dataset based on the results of the stored proc. So basically...
>
>MyDataClass.PopulateTypedDataSetFromProc( InstancedofTypedDataSet, "procedureName");
>
>
>
>I have a .NET class that does this. Again, a tad outdated, but maybe would still work for you. Let me know if that's what you're looking for.

Thanks, Kevin. (I copied you on my reply to Tracy as well ). My problem is simply #1 above. How can I create the schema for that dataset from the sproc itself so i can see it at design time. If I use Add Datasource and point it at a sproc I get the structure of the first table it returns, but it ignores the rest. I like the convenience of having it read from the sproc but I also want to use a single sproc for each report, which will often require multiple tables.


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform