Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to handle many similar SPROCS
Message
De
11/01/2008 01:08:47
 
 
À
10/01/2008 08:57:40
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 8.0
Database:
MS SQL Server
Divers
Thread ID:
01280182
Message ID:
01281058
Vues:
24
>I have one single dataset I am trying to return. I am returning Orders, and each order has a dealer ID. The SPROC returns data only from the order table. Now I want to show the DealerName with each Order (I need to join my Dealer table). Do I do the join in my SPROC and update all my existing GetOrder SPROCS, and the structure of my class or Strongly Typed DataSet (there really needs to be an acronym created for that)?
>
>I know what I CAN do, I just don't know what I SHOULD do.


So, it sounds like you simply want to add a new column, DealerName, to your existing Orders DataSet, right? I'd probably update the DataSet to add the column, and then update my Proc(s) to do the JOIN there to return the DealerName with the rest of the table.

I simply refer to them as either DataSets or Typed DataSets ... saying "strongly" is a bit redundant, IMHO. <g>

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform