对于COM+组件,关于使用UsesTransaction和RequiresTransactoin的问题

jd29323 2001-10-30 06:55:20
假如我要在组件中实现SELECT、INSERT、UPDATE表的操作
那我的这个组件应该使用UsesTransaction还是RequiresTransactoin?
...全文
48 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
fantong 2002-02-07
  • 打赏
  • 举报
回复
Give me credits!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
fantong 2002-02-06
  • 打赏
  • 举报
回复
UsesTransaction can use in the transaction which created by other component,but if there is no transaction,com+ does not create a new transation for it.RequiresTransactoin say the component must use in a transaction ,if not in a transaction ,com+ create one for it.Require new transaction make com+ create a new transaction ,no matter there is one or not.
sclxp 2002-02-05
  • 打赏
  • 举报
回复
如果上层组件为需要事务,此组件可为支持事务,否则应为需要事务。

3,248

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧