You can use the CommandBuilder object to build the update, insert and delete
commands as necessary based on a select command. Naturally, you will suffer
some performance implications in doing this. See
http://msdn.microsoft.com/library/de...andbuilder.asp.
The CommandBuilder is used by the VS designer to create the commands. I would
recommend NOT using it in a production application, but rather have more
fine-grained control of your environment.
Per the original question, you should be able to check the DataAdapter.SelectCommand.CommandText
to manipulate the SQL being sent. One thing to remember: use parameterized
queries not string concatenation to avoid SQL Injection.
Jim Wooley
http://devauthority.com/blogs/jwooley/default.aspx
> Altman,
>
> I don't think so, the designer builds beside the Select as well the
> Update, the Insert and the Deletecommands.
>
> Those are more complex than the standards, because for
> concurrencychecking are the old rows first checked against the last in
> the database.
>
> If you want to do things like you ask, than you should in my opinion
> forget the designer and do everything in code.
>
> Just my idea.
>
> Cor
>
> "Altman" <(E-Mail Removed)> schreef in bericht
> news:(E-Mail Removed)...
>
>> I am playing around with making a dataset with the designer in vb.net
>> 2005. I realize you can add parameters to select statement and then
>> filter off of those parameters. What I would like to do is to take
>> the dataset that the designer made and add the whole where clause to
>> it at run time. Is this possible?
>>