Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetDataSet method and mutltiple result sets
Message
 
 
À
09/08/2009 12:35:35
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01416914
Message ID:
01416931
Vues:
37
I'm not really familiar with MereMortals, it would be a nice opportunity for me to learn it a bit.

I'll experiment on Monday, but first I would need to create this SP :)

In my original attempt I was trying to just get one huge result as one select statement. Then my colleague came over and explained to me about subreports and a proper way to handle this.

>As a practice, you should give your result set table names the same name as the table names you used when you designed the query.
>
>I will read data into the same typed DS definition that I used to create the report schema, so I never have to worry.
>
>If Mere Mortals doesn't allow you pass in your own definition of your tables names from a typed DS, I'm guessing you'd have to "name" the names afterwards. (It's been a few years since I used MM).
>
>However, I believe that in the absence of meaningful names, you might be able to set the report dataset tables based on position/table number within the dataset. So if your report definition used 3 tables, you can pass in a dataset at runtime with a dataset that has the 3 tables in the same order. I don't care for that practice, but it *should* work - at least it worked the first time I ever tried it.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform