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

后端 未结 6 874
夕颜
夕颜 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

    Just wanted to correct dataol's answer and say that MARS_Connection should be set to "Yes" instead of "True" to enable Multiple Active Result Sets. At least on SQL Server 2012 if you are using a DSN file:

    [ODBC]
    DRIVER=SQL Server Native Client 11.0
    DATABASE=MYDBNAME
    WSID=
    Trusted_Connection=Yes
    SERVER=
    MARS_Connection=Yes
    

提交回复
热议问题