R
Ruslan
Hello,
I have:
Method1()
{
SqlDataReader dr = new DataReader();
....
while (dr.Read)
{
Method2()
}
}
Method2()
{
SqlDataReader dr = new DataReader();
....
while (dr.Read)
{
Method2()
}
}
I use the same connection for both SqlDataReader. It's logically what error
appears, when the "dr.Read()" from the "Method2 is called, because there is
one open connection for the first SqldDataReader. Is it possible to do
something what the both SqlDataReader use the same connection?
Thanks,
Ruslan
I have:
Method1()
{
SqlDataReader dr = new DataReader();
....
while (dr.Read)
{
Method2()
}
}
Method2()
{
SqlDataReader dr = new DataReader();
....
while (dr.Read)
{
Method2()
}
}
I use the same connection for both SqlDataReader. It's logically what error
appears, when the "dr.Read()" from the "Method2 is called, because there is
one open connection for the first SqldDataReader. Is it possible to do
something what the both SqlDataReader use the same connection?
Thanks,
Ruslan