Yes, that's what we are doing but is hitting performance tremendously because of multiple roundtrips to the database.
I beileve it might be related to prevention of SQL Injection. I am just saying, not quite sure.
Main Topics
Browse All TopicsHello. I have an web application.
We had ODBC provider to execute queries against a foxpro database. When i was using the ODBC provider i can put multiple statements in one command string.
Ex: "SELECT * FROM table!;SELECT * FROM table2;SELECT * FROM table3"
Now we changed to VFPOLEDB provider. When i try to execute the same statement i get an error telling me that "THE PROVIDER DOES NOT ALLOW TO RETURN MULTIPLE DATASETS" something like that. Now, when I execute other commands than SELECT like INSERT or UPDATE, ex: INSERT INTO.....;UPDATE table1....;....;" then it executes the first one only. It does not return any error message or any message at all if it executed all of the statements or why it executed only the first one.
Is there any other provider that I can use?
Thank You
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
With OLEDB Provider you can execute Execscript. So in general the following would execute. There are two downsides:
a) string delimiters [ and ] are delimiting the script for execscript and not allowed within the code, you can of course use " or ' for enclosing the script.
but more important
b) You need SETRESULTSET() to specify what OLEDB should return as result recordset, but you can only mark one cursor as a resultset.
Bye, Olaf.
Business Accounts
Answer for Membership
by: CaptainCyrilPosted on 2008-11-26 at 12:25:11ID: 23045354
Can you run each command by itself?
I never worked with the OLE DB Provider but it seems it does not accept the commands separated by ";".