Hi

I need to perform following querie in vb.net

The queries are;

NSERT INTO [destTbl] (field1, field2)
SELECT srcTbl.field1, srcTbl.field2
FROM srcTbl
WHERE (((srcTbl.entry_id) Not In (SELECT srcTbl.entry_id FROM [destTbl])));


In access I just run these query and job is done without any need for
datadatpters etc. What is the easiest way to execute these two queries in
ado.net/vb.net?


Thanks

Re: Update/insert one table from another by RobinS

RobinS
Tue Jan 23 02:06:33 CST 2007

Use the ExecuteNonQuery method of the Command object.

Robin S.
---------------------------------
"Eashrak" <eashrak@gmail.com> wrote in message
news:Op6U0GqPHHA.1604@TK2MSFTNGP05.phx.gbl...
> Hi
>
> I need to perform following querie in vb.net
>
> The queries are;
>
> NSERT INTO [destTbl] (field1, field2)
> SELECT srcTbl.field1, srcTbl.field2
> FROM srcTbl
> WHERE (((srcTbl.entry_id) Not In (SELECT srcTbl.entry_id FROM
> [destTbl])));
>
>
> In access I just run these query and job is done without any need for
> datadatpters etc. What is the easiest way to execute these two queries
> in
> ado.net/vb.net?
>
>
> Thanks
>
>