I don't know why this is happening now. Until today this section of
code worked just fine. I have a CRecordset-derived class which
accesses a SQL Server 6.5 table via dynaset (yes, the table has a
primary key). I select the row that I want, run the Edit() method, set
a value to a bound variable, and then run the Update() method. That's
when the program hangs. I stepped into the MFC code and found the
specific line it hangs on:
AFX_ODBC_CALL(::SQLSetPos(m_hstmt, 1, wPosOption, SQL_LOCK_NO_CHANGE));
which is in the CRecordset::ExecuteSetPosUpdate() method.
What could cause this kind of behavior? I tried rebooting, just in
case it was some kind of Windows error.
I am using Visual Studio 5 on Windows NT Server 4.0 sp 3 with SQL
Server 6.5 sp 3.
Thanks,
Michael English
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.