可以在SQL Server连接字符串包含类似XACT_ABORT选项?字符串、选项、类似、SQL

由网友(村头二傻子)分享简介:能否SQL字符串中包含类似 XACT_ABORT 选项。例如,我可以执行设定 XACT_ABORT在,但我想设置在连接字符串这个选项。可能吗?我试着写 XACT_ABORT =开; 和 XACT_ABORT = YES; ,但没有工作Can SQL string contain options like XACT_A...

能否SQL字符串中包含类似 XACT_ABORT 选项。例如,我可以执行设定 XACT_ABORT在,但我想设置在连接字符串这个选项。可能吗?我试着写 XACT_ABORT =开; XACT_ABORT = YES; ,但没有工作

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.

推荐答案

没有,那是不可能的。可能的选项都记录在这里:

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

http://msdn.microsoft.com/en-us/library/ ms130822.aspx http://www.connectionstrings.com/all-sql-服务器连接字符串的关键词 http://msdn.microsoft.com/en-us/library/ms130822.aspx 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.

阅读全文

相关推荐

最新文章