Re: ExecuteNonQuery() - Bach SQL Statement execution?

From: Nathan (Nathan_at_discussions.microsoft.com)
Date: 11/09/04


Date: Tue, 9 Nov 2004 15:21:02 -0800

Thank You Malik.
I did try a batched query with DataReader. Datareader.NextResult doesn't
work.. so my ODBC driver doesn't allow, I guess.

"Sahil Malik" wrote:

> > How do I know if my underlying driver supports this?
> Depends on the ODBC driver. I say write up a quick test app and execute a
> batched query.
>
> > Is there something I can do to change any setting on the ODBC driver?
> Again depends on the ODBC driver, but I haven't ever come across such a
> setting, and logically it doesn't make any sense to not enable this by
> default -- in other words, my hunch is, no such setting exists because it
> doesn't seem to make sense.
>
> - Sahil Malik
> http://dotnetjunkies.com/weblog/sahilmalik
> Please reply to the newsgroups instead of email so everyone can benefit from
> your reply.
>
>
> "Nathan" <Nathan@discussions.microsoft.com> wrote in message
> news:8476A9BD-5D3E-49AA-A0F8-0F34FB78B4B2@microsoft.com...
> > Hi,
> > I am trying to use the ExecuteNonQuery() to execute multiple SQL update
> > statements. Though the SQL is correct, it only executes the first update
> > statement. When I looked through the documentation I found out this,
> > "You can also use ExecuteNonQuery to execute multiple SQL statements if
> the
> > underlying ODBC driver supports this functionality."
> > How do I know if my underlying driver supports this?
> > Is there something I can do to change any setting on the ODBC driver?
> > Thanks for any help.
> >
>
>
>



Relevant Pages

  • Re: ExecuteNonQuery() - Bach SQL Statement execution?
    ... > How do I know if my underlying driver supports this? ... Depends on the ODBC driver. ... > I am trying to use the ExecuteNonQuery() to execute multiple SQL update ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: SQL UPDATE to Memo field problem
    ... When I attempt to execute this command from my environment, ... statement from 4D (my environment) using. ... $iResult:=OC Set SQL in Cursor ... The error messages from the ODBC driver returns: (on the Set SQL in Cursor ...
    (microsoft.public.fox.vfp.queries-sql)
  • Text Field Returned as Null?
    ... I have an ODBC driver (ASE 4.10.00.10) that when I execute a query ...
    (comp.databases.sybase)
  • Re: CDialog/Invalidate/UpdateWindow question
    ... the debug window, more than one thread completes execute with exit code ... Many libraries (probably including ODBC or your ODBC driver) create threads for their own purposes. ...
    (microsoft.public.vc.mfc)