Hi all,
I insert 183 rows to a specific table in SQL Server (say, T035). The
method I used was I created a remote view rv_location with (CREATE SQL
VIEW rv_location REMOTE CONNECTION "Conn" AS SELECT T035.* FROM dbo.T035
T035), and do the insertion to the remote view.
After the insertion, I couldn't run all forms that have remote views
related to T035. Whenever I run the form, ODBC sent "Connection is busy
with results for another hstmt" error.
It's really confusing because:
1. The database is on my local machine, and I am not connected to any
network. This means nobody use the server except vfp.
2. Although I cannot open the rv from my form's DE (Data Environment),
when I use the remote view from VFP IDE, the cursor filled with
appropriate value. No error from ODBC.
I searched SQL Server Online Books, and I found out that the cause
either SQL Server doesn't support SELECT * FROM... (???) or SQL Server
treat it as bulk copy. It is said that "the solution is to call
bcp_done" --- and I don't know how to call bcp_done (tried it with
SQLEXEC)
I'm really confused here. I tried to exit and re-run vfp with no luck. I
tried to reboot my computer --- still with no luck. I even (stupidly ---
it's funny how we suddenly do something that obviously has nothing to do
with the error when unknown error happened!---) tried to delete the view
from my form's DE, pack the .scx, and attached the view back again; of
course with no luck!
Can anybody help me what to do with this error? I hate to admit that the
only solution I got is restore the database from the backup :-(
TIA,
Willianto