Multiple Select Query Execute
Posted: Wed 12 Sep 2012 10:48
Hello.
I'm developing a SQL executor like SQLGate and Orange.
I'm having a problem executing mutiple select queries.
(eg, select * from dept; select * from emp;)
Two seperate grids should be displayed after the execution.
Right now, I'm adding the queries into the array and execute them one by one using the
foreach(string q in queries)
{
oracleCommand.CommandText = q;
....
}
Is there any better way to do this?
Thank you.
ps - I'm using C#.
I'm developing a SQL executor like SQLGate and Orange.
I'm having a problem executing mutiple select queries.
(eg, select * from dept; select * from emp;)
Two seperate grids should be displayed after the execution.
Right now, I'm adding the queries into the array and execute them one by one using the
foreach(string q in queries)
{
oracleCommand.CommandText = q;
....
}
Is there any better way to do this?
Thank you.
ps - I'm using C#.