PC Review


Reply
Thread Tools Rate Thread

DataAdapterUpdates

 
 
Jon
Guest
Posts: n/a
 
      22nd Jul 2003
I'm new to .NET development and need some info on using
the dataadapter. I've got a Dataset object that was built
using a join of two tables. I'm having trouble getting the
data to update after changes have been made in the dataset.


dim oDataset as dataset
dim oSQLAdapter as new SQLDataAdapter(SELECT
Users.sUserid, Forms.sFormID inner join on ....)

odsqlAdpater.fill(oDataset)

dim oCommand as new SQLCommandbuilder(oSQLAdapter)
oCommand.DeleteCommand = ocommandbuilder.getdeletecommand
....

oSQLAdapter.update(odataset,"Users")
odataset.acceptchanges

oSQLAdapter.update(odataset,"Forms")
odataset.acceptchanges


Thanks,

Jon

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:31 AM.