Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending Changes From A Dataset To The DB
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01306720
Message ID:
01307631
Vues:
12
>>I'm a bit confused on something.
>>
>>
>>public void UpdateMyData(DataSet ds)
>>{
>>	// The same applies for the Update. It's not necessary to Open/Close the connection.
>>	SqlDataAdapter da = new SqlDataAdapter("select * from Appusers", this.oConnection);
>>	SqlCommandBuilder sb = new SqlCommandBuilder(da);
>>
>>	da.Update(ds);
>>}
>>
>>
>>If I'm passing a DS to this, then I have already done a query and have updated the data in the DS, so why run
>>another query?
>>
>>Inquiring minds wanna know.
>
>You're not running a query. Just passing the SelectCommand value to the DataAdapter for use by the CommandBuilder.
>Regards,
>Viv

Thanks Viv!
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform