MS State 远程 proc trans 选项将在下一版本的 SQL SERVER 中删除

发布于 2024-08-11 17:06:45 字数 806 浏览 1 评论 0原文

我不确定在这里问是否正确...我在网上搜索答案,但徒劳无功...所以我只是想在这里试试运气。

以下是 Microsoft 网站 http://msdn 的摘录。 microsoft.com/en-us/library/ms189322(SQL.90).aspx

远程过程传输选项

使用远程 proc trans 选项通过 Microsoft 分布式事务协调器 (MS DTC) 事务保护服务器到服务器过程的操作。将远程 proc trans 设置为 1 以提供 MS DTC 协调的分布式事务,保护事务的 ACID(原子、一致、隔离和持久)属性。将此选项设置为 1 后开始的会话将继承配置设置作为默认设置。

此功能将在下一版本的 Microsoft SQL Server 中删除。避免在新的开发工作中使用此功能,并计划修改当前使用此功能的应用程序。

提供此选项是为了与使用远程存储过程的应用程序的早期版本的 Microsoft SQL Server 兼容。不要发出远程存储过程调用,而是使用引用链接服务器的分布式查询,这些链接服务器是通过 sp_addlinkedserver 定义的。

这是否意味着,我们需要避免在事务范围对象升级为 MSDTC 的情况下使用它?

注意:这是 SQL Server 2005 的消息,但 SQL Server 2008 也会出现相同的消息。

I'm not sure whether it is right to ask it here... I searched the net for an answer, But in vain... So I just wanted to try my luck here.

Here is the excerpt from Microsoft Website http://msdn.microsoft.com/en-us/library/ms189322(SQL.90).aspx

remote proc trans Option

Use the remote proc trans option to protect the actions of a server-to-server procedure through a Microsoft Distributed Transaction Coordinator (MS DTC) transaction. Set remote proc trans to 1 to provide a MS DTC-coordinated distributed transaction that protects the ACID (atomic, consistent, isolated, and durable) properties of transactions. Sessions begun after setting this option to 1 inherit the configuration setting as their default.

This feature will be removed in the next version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

This option is provided for compatibility with earlier versions of Microsoft SQL Server for applications that use remote stored procedures. Instead of issuing remote stored procedure calls, use distributed queries that reference linked servers, which are defined by using sp_addlinkedserver.

Does this means, we need to avoid using Transaction Scope Object on scenarios where it gets promoted to MSDTC ?

Note : This is the message for SQL Server 2005, but the same message appears for SQL Server 2008 also.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

养猫人 2024-08-18 17:06:45

您引用的文档并不是谈论删除 MSDTC,而是谈论从 SQL Server 中删除 remote proc trans 选项。

这纯粹与 SQL Server 之间的 MSDTC 中介存储过程调用(一种被链接服务器取代的传统方法)相关,并且与从 .net 框架访问 SQL Server 没有直接关系。

编辑

remote proc trans 是一个 SQL Server 配置选项,用于处理 2 个或更多 SQL Server 之间的事务(其中一台服务器在另一台服务器上执行存储过程)是否使用 MSDTC。

据我了解,.net 事务范围处理由.net 框架发起的事务,该框架可能会也可能不会使用 MSDTC。无论remote proc trans 设置如何,SQL Server 事务都可以包含在 MSDTC 下的事务范围中。

The document you reference is not talking about removing MSDTC, but removing the remote proc trans option from SQL Server.

This relates purely to MSDTC mediated stored procedure calls between SQL Servers (a legacy approach superseded by linked servers), and has no direct bearing on accessing SQL Server from the .net framework.

EDIT

remote proc trans is a SQL Server confguration option which deals with whether transactions between 2 or more SQL Servers where one server executes a stored procedure on another will use MSDTC.

As far as I understand it, .net transaction scope deals with transactions initiated by the .net framework, which may or may not use MSDTC. SQL Server transactions can be included in the transaction scope under MSDTC regardless of the remote proc trans setting.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文