M
Matt
I am using SQLDataReader to do a rather simple select statement, and then
running an update in the while loop for the Read method.
When I place the SQLDataReader in a thread delegate or not, it always pulls
duplicates for example my database contains the following:
TestID
1
2
3
And I output my values
string strTestID = "";
while(Connection1.Read())
{
strTest = Connection1[0].ToString();
}
It will output
1
1
2
2
3
3
If I take this out of a thread it will output like it should
1
2
3
Any ideas on what might be going on?
running an update in the while loop for the Read method.
When I place the SQLDataReader in a thread delegate or not, it always pulls
duplicates for example my database contains the following:
TestID
1
2
3
And I output my values
string strTestID = "";
while(Connection1.Read())
{
strTest = Connection1[0].ToString();
}
It will output
1
1
2
2
3
3
If I take this out of a thread it will output like it should
1
2
3
Any ideas on what might be going on?