Working with DB
-
Hi all, I want to write some data into a DB using ADO. I got an error for the following code.
"Multiple-step operation generated errors. Check each status value."
Here is the code.m_pRecSet->AddNew(); vtData.vt = VT_INT; vtData.intVal = static_cast<int>(23); m_pRecSet->Fields->GetItem("PackID")->PutValue(vtData); m_pRecSet->Update();
Can someone tell me what that error means?I appreciate your help all the time... CodingLover :)
-
Hi all, I want to write some data into a DB using ADO. I got an error for the following code.
"Multiple-step operation generated errors. Check each status value."
Here is the code.m_pRecSet->AddNew(); vtData.vt = VT_INT; vtData.intVal = static_cast<int>(23); m_pRecSet->Fields->GetItem("PackID")->PutValue(vtData); m_pRecSet->Update();
Can someone tell me what that error means?I appreciate your help all the time... CodingLover :)
CodingLover wrote:
Can someone tell me what that error means?
Which statement generates the error?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
Hi all, I want to write some data into a DB using ADO. I got an error for the following code.
"Multiple-step operation generated errors. Check each status value."
Here is the code.m_pRecSet->AddNew(); vtData.vt = VT_INT; vtData.intVal = static_cast<int>(23); m_pRecSet->Fields->GetItem("PackID")->PutValue(vtData); m_pRecSet->Update();
Can someone tell me what that error means?I appreciate your help all the time... CodingLover :)
Check if you are using transactions among the context