Re: ExecuteNonQuery() - Bach SQL Statement execution?
From: Val Mazur (group51a_at_hotmail.com)
Date: 11/09/04
- Next message: Val Mazur: "Re: Sql Transaction"
- Previous message: Val Mazur: "Re: howto: use 'non sqlxml' xml returned by sql in dataset/reader or s"
- In reply to: Nathan: "ExecuteNonQuery() - Bach SQL Statement execution?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Nov 2004 18:59:39 -0500
Hi,
You would need to check documentation for the ODBC driver, but as I know
only OLEDB for SQL Server provider does it. To test if it supports batches
or not, you would need to separate statements with the semicolon (;) and run
this batch. See what happens. If it does not work this way, than most likely
driver/provider does not support this functionality
-- Val Mazur Microsoft MVP "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. >
- Next message: Val Mazur: "Re: Sql Transaction"
- Previous message: Val Mazur: "Re: howto: use 'non sqlxml' xml returned by sql in dataset/reader or s"
- In reply to: Nathan: "ExecuteNonQuery() - Bach SQL Statement execution?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|