cancel
Showing results for 
Search instead for 
Did you mean: 

log for dabase operations (insert, update)

0 Kudos

Hello,

Is there any log in ASE 15.7 where all operations against the user database such as insert,delete update are registred?

I'm looking for something like 'binary-log' in MySql where all operations that modify data in a database are saved in a log.

Does it exist in Sybase?

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

former_member188958
Active Contributor
0 Kudos

Three things come to mind:

1) ASE's transaction log, which is stored in the syslogs table in each database (though most of the content is hidden from SELECT). You can examine the content using the largely undocumented DBCC LOG command. In the simplest form:

use mydatabase
go
set switch on 3604
go
dbcc log()
go

2) There is the monitoring table master..monSysSQLtext. This has to be configured, and consists of a "pipe" of the most recent SQL commands that were run. The size of the pipe is configurable, but the contents only go back so far.

3) You can configure auditing of "cmdtext" for a more permanent record of SQL commands that were run.

Answers (1)

Answers (1)

0 Kudos

thank you for your answer