sybase 事务 not allowed within a multi-statement transaction

来源:互联网 发布:php 日期格式转时间戳 编辑:程序博客网 时间:2024/06/05 04:10
sybase在一个事物中使用create等语句报错:
 
com.sybase.jdbc2.jdbc.SybSQLException: The 'CREATE TABLE' command is not allowed within a multi-statement transaction in the 'FounderDAM353' database.
 
解决办法是:在数据库参属性参数中勾选上"ddl in tran"选项,或者执行下面语句:
sp_dboption 'ddl in tran',true1
0 0
原创粉丝点击