Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: Atomic drop/create trigger in ASE 16

$
0
0

In order to prevent the glitch, perhaps the following could be used?

1. Turn on 'ddl in tran'

2. Begin transaction

3.   Lock the table <trigger table> in exclusive mode

4.   drop the trigger

5.   create the trigger

6. Commit transaction

7. Turn off 'ddl in tran'

 

Downside is that it will give an error on queries that were blocked on the exclusive lock saying the the schema has changed and the query should be re-executed, but it should prevent the glitch.


Viewing all articles
Browse latest Browse all 3587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>