data adapter

S

steve

i'm calling a web service that returns a dataset. i'm trying, but failing,
to use that dataset to populate a local sql server table. the table names
between the two are different but their structures are the same.

here's pseudo-code:

dim mytable as string = "otherstuff"
dim mydataset as dataset = mywebsvc.getstuff()
dim myadapter as new sqldataadapter()
cmd.commandtext = "insert into stuff values (?, ?, ?)"
myadapter.insertcommand = cmd
myadapter.update(mydataset, mytable)

any input is appreciated.

tia,

steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top