Performance speaking, is it better to stick with one connection or use a different one for each task?
In my case I have something like:
Should I use the same connection for A and B or different, or should I create a new connection for B for each loop?
Thanks :) ,
Billy
In my case I have something like:
Code:
string query = ...
OdbcDataReader reader = [B]connectionA[/B] -> read query
while (reader.Read())
{
...
query = ...
OdbcDataReader reader2 = [B]connectionB[/B] -> read query
if (reader.Read())
{
...
}
}
Thanks :) ,
Billy
Comment