Question

Is there a way to use CREATE TABLE inside of a transaction in Sybase?

No correct solution

OTHER TIPS

Assuming we're talking about Sybase ASE ...

To allow DDL (eg, create table) to be performed within a transaction the DBA can configure the database (where the DDL is to be performed) with the following:

sp_dboption <dbname>,'ddl in tran',true

NOTE: ddl in tran == true is not recommended since this can lead to excessive blocking, and in some rare cases deadlocking, on system table activity

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top