DataAdapter

T

Tony Johansson

Hello!

I wonder when is it advisable to set the update, insert or delete command
explicitly by using DataAdapter.
instead of using the SqlCommandBuilder.

Does this SqlCommandBuilder build insert, update and delete command that is
wrong in some way or what is the reason.

//Tony
 
H

henk holterman

Tony said:
Does this SqlCommandBuilder build insert, update and delete command that is
wrong in some way or what is the reason.

Not necessarily wrong, but it is a pretty simple straight-forward tool.
You will often be able to optimize by removing unnecessary columns from
where clauses for example.

And when dealing with a slightly more complex situation, like a Join in
the Select statement, CommandBuilder will give up and you will have to
write the SQL by yourself.
 

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