Groups
Groups
Sign in
Groups
Groups
NBear Google Group
Conversations
About
Send feedback
Help
连接其他人数据库做插入修改操作时,出现下列异常:
7 views
Skip to first unread message
Lex
unread,
Dec 20, 2006, 1:31:30 AM
12/20/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NBear Google Group
"事务已被隐式或显式提交,或已终止。"
数据库在本机的时候,没有出现该问题。
但数据库与程序不在一台机器时,做数据库写操作就会出现这个问题。
所以想请教一下Teddy。
Teddy
unread,
Dec 20, 2006, 1:36:30 AM
12/20/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nbear...@googlegroups.com
你使用的是默认的基于msdtc的事务还是基于Gateway.BeginTransaction()的事务呢?如果是前者,建议改为后一方案试试,因为最有可能的原因还是默认的基于msdtc的事务的问题。在本机调试时,由于数据库在同一机器,msdtc总能工作正常,跨机器时可能就会受各种原因的影响,比如防火墙等。
Teddy
Lex
unread,
Dec 20, 2006, 9:18:44 PM
12/20/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NBear Google Group
但我并未使用事务。怎么还会有这样的提示?
Teddy
unread,
Dec 20, 2006, 9:23:41 PM
12/20/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nbear...@googlegroups.com
默认情况下,只要有些操作,nbear内部就可能使用事务,默认的事务基于msdtc。可以通过显式使用gateway.BeginTransaction()方式的事务来完全避免msdtc方式的事务。关于msdtc导致的报你遇到的这个错误的问题的原因,可以参考一下这篇文章:
http://www.cnblogs.com/hotsoho.net/archive/2006/12/20/598620.html
Teddy
On 12/21/06,
Lex
<
cuil...@gmail.com
> wrote:
但我并未使用事务。怎么还会有这样的提示?
Teddy
unread,
Dec 20, 2006, 9:23:57 PM
12/20/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nbear...@googlegroups.com
"只要有写操作"
Reply all
Reply to author
Forward
0 new messages