Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple Dataset question
Message
De
02/08/2002 12:06:57
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00685449
Message ID:
00685515
Vues:
26
I'm glad you thought that was a good question, because (now) I have a really stupid question.

If I want to do an SQL query and bring back the results in a dataset, do I *have* to use the data adapter?

I have a form where I need to bring back 3 data tables...so I do a

MyAdapter = new SqlDataAdapter("SELECT * FROM TABLE1; SELECT * FROM TABLE2; SELECT * FROM TABLE3,MyConnection)

DsReturn = new DataSet();
MyAdapter.Fill(DsReturn,"whatever");

Is there a 'simpler' way to do this? About the only requirement is that it has to be a dataset, it can't be a data reader.

Thanks,
Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform