Hi Friends,
I am using CTD 4.1 and SQL Server 2005. When i am working with my application getting the following error.
SQL Error 20055 [Microsoft][ODBC SQL Server Driver]Connection in busy with results for another hstmt.
My application through this error, when it's process multiple resultsets in loop.
Please help me to resolve this issue.
Manimaran
SQL Server ODBC Error
Re: SQL Server ODBC Error
Hi!
Set SqlResultSet = TRUE
Call SqlConnect(hSql)
Call SqlPrepareAndExecute(hSql, 'select x from y')
While SqlFetchNext(hSql, nRet)
Do some SQL-stuff
OR
Call SqlConnect(hSql)
Call SqlSetResultSet(hSql, TRUE)
Call SqlPrepareAndExecute(hSql, 'select x from y')
While SqlFetchNext(hSql, nRet)
Do some SQL-stuff
Hope this helps.
Josi45
Set SqlResultSet = TRUE
Call SqlConnect(hSql)
Call SqlPrepareAndExecute(hSql, 'select x from y')
While SqlFetchNext(hSql, nRet)
Do some SQL-stuff
OR
Call SqlConnect(hSql)
Call SqlSetResultSet(hSql, TRUE)
Call SqlPrepareAndExecute(hSql, 'select x from y')
While SqlFetchNext(hSql, nRet)
Do some SQL-stuff
Hope this helps.
Josi45
Re: SQL Server ODBC Error
The problem with using the Native driver and setting REsult Set to TRUE is that you ned to commit each cursor individually.
Re: SQL Server ODBC Error
Code: Select all
SqlSetResultSet(hSql, TRUE)
I've speend to much time in this issue...
Thx a loot!
Who is online
Users browsing this forum: No registered users and 0 guests