Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can SQL Server Connection String Contain Options like XACT_ABORT?

Can SQL string contain options like XACT_ABORT. For example, I can execute set XACT_ABORT On, but I would like to set this option in connection string. Is it possible? I tried to write XACT_ABORT=On; and XACT_ABORT=yes;, but that didnt work.

like image 440
Jānis Gruzis Avatar asked Nov 16 '25 17:11

Jānis Gruzis


1 Answers

No, that is not possible. The possible options are documented here:

  1. http://msdn.microsoft.com/en-us/library/ms130822.aspx
  2. http://www.connectionstrings.com/all-sql-server-connection-string-keywords

I also advise you to stick to the default options because that is what everyone uses. The product works best one you are close to the defaults. Also, help on the web will be easier to obtain.

like image 134
usr Avatar answered Nov 18 '25 21:11

usr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!