Hi all,
The truncate table command is written to a store procedure. However, bellow Error message came out.
"TRUNCATE TABLE command not allowed within multi-statement transaction."
Plz give some example to fix the erro.
bellow option was set before run my store proc.
sp_dboption mydb, "ddl in tran", true
go
used mydb
go
CHECKPOINT
goe
Thank,
Mike
The truncate table command is written to a store procedure. However, bellow Error message came out.
"TRUNCATE TABLE command not allowed within multi-statement transaction."
Plz give some example to fix the erro.
bellow option was set before run my store proc.
sp_dboption mydb, "ddl in tran", true
go
used mydb
go
CHECKPOINT
goe
Thank,
Mike