Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Operation cannot be performed while executing asynchronously"

Status
Not open for further replies.

LucieLastic

Programmer
May 9, 2001
1,694
GB
We've started to get this error from a DLL I wrote. The DLL has very simple ADO components in it and it's used from HTB/Turbo Basic. The DLL allows HTB to connect to a database and run SQL statements.

The DLL is written in Delphi 7 and accesses SQL Server 2005. Nothing that I know of has changed and this HTB code was running fine last week.

The table it's accessing is a very big table and could it be a case that the last SQL command hasn't finished when the HTB code is trying to send another Insert statement (via the DLL)?

Could it be an option I need to change in the TADOConnection component?

Many thanks
Lou
 
do you have ExecuteOptions set to [eoAsyncExecute]?

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
I was looking for this property so I could set it, could you tell me where it is?
 
depends on what you use (TADOQuery, TADOStoredProc, TADOTable, ...)

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top