Because you are trying to do an update query on a connection with an open datareader.
You also should not be creating a new instance of the cmd object within your loop.
Not sure why you are even...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: DataMiser Search: Search took 0.07 seconds.
Results 1 to 2 of 2
|
Click Here to Expand Forum to Full Width |