Why only some users get the error: “Connection is busy with results for another command”

后端 未结 6 957
夕颜
夕颜 2021-02-08 16:06

I have a Delphi Application that is connected to a SQL Server db using SDAC component from DevArt, we have 200 installations of the software and only to a customer, with some us

6条回答
  •  故里飘歌
    2021-02-08 16:34

    @ienax_ridens, I recently encountered the same problem using the same tools (Delphi and Devart-SDAC). In my case one specific query giving two results sets. My TMSQuery was

    If Condition= 1 
    begin
     Select * from #TempTable1
    end else 
    begin
      -- Some more stuff
      Insert INTO #TempTable2
     --
     --
    End
    Select * from TempTable1 -- here is the problem
    

    so in case of Condition = 1 it was giving two results sets and causing "Connection is busy with results for another command"

    I hope this helps you.

    Edit: I realized you post is quite old, please share what you did to resolve this error

提交回复
热议问题