I want my program to behave differently when MARS is enabled (decided by
connection string/provider).
Is there some query I can do to find out if MARS is enabled or not?
MARS: http://technet.microsoft.com/en-us/library/ms345109.aspx
Best regards from Gaute
Since you are using a .NET language you might be able to trap the exception
while running the sqlreader on the command object. If MARS is enabled, you
might get an exception stating "There is already an open DataReader
associated with this command.... ". that you can capture using a try..catch
block.
--
Anith
Is there really no such way to check this connection parameter without
having access to the connection string?
Best regards from Gaute
Hope this helps. If you have any other questions or concerns, please feel
free to let me know. Have a nice day!
Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================