We have a VFP6 application using SQL Server 7 as the back end. We just rewrote the whole thing (96 forms, 60 reports) to use SQL passthrough commands instead of SQL remote views. Everything's working, but about once or twice a day, a user gets the "Database object is being used by someone else" error message. The code that is trying to execute when this happens is:
What could be causing this? FoxPro would normally display this error message (#1709) if the application tried to access a table, view, or other database object that was locked for modification by a developer, but the application doesn't modify the structure of any database objects.
"our_conn" is a named connection, defined in the FoxPro database container using a connection string--not a DSN.
Our SQL passthrough code gets a connection instance when we're ready to execute it and drops the connection instance immediately after execution. The only exceptions are a couple of points at which we're reserving the ability to rollback a bad transaction. None of these transactions last more than a second or two.
Client workstations are using Windows 2000, and the server has Windows NT 4. We have the latest service packs.
TIA for anything you can suggest.
Code:
m.handle = SQLCONNECT("our_conn")
What could be causing this? FoxPro would normally display this error message (#1709) if the application tried to access a table, view, or other database object that was locked for modification by a developer, but the application doesn't modify the structure of any database objects.
"our_conn" is a named connection, defined in the FoxPro database container using a connection string--not a DSN.
Our SQL passthrough code gets a connection instance when we're ready to execute it and drops the connection instance immediately after execution. The only exceptions are a couple of points at which we're reserving the ability to rollback a bad transaction. None of these transactions last more than a second or two.
Client workstations are using Windows 2000, and the server has Windows NT 4. We have the latest service packs.
TIA for anything you can suggest.