可以在SQL Server连接字符串包含类似XACT_ABORT选项? [英] Can SQL Server Connection String Contain Options like XACT_ABORT?

查看:182
本文介绍了可以在SQL Server连接字符串包含类似XACT_ABORT选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

能否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:

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

这篇关于可以在SQL Server连接字符串包含类似XACT_ABORT选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆