利用EVENT MONITOR,下面是官方文档中的一个例子: Example 2: This example creates a unit of work event monitor UOWEVMON that will collect unit of work events that occur on the database of creation and store it in the unformatted event table GREG.UOWEVENTS. CREATE EVENT MONITOR UOWEVMON FOR UNIT OF WORK WRITE TO UNFORMATTED EVENT TABLE (TABLE GREG.UOWEVENTS) |