Quantcast
Channel: SCN: Message List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 2182

Re: Backup

$
0
0

The statement that I recommended previously would work - that is the SQL that would be executed to truncate the log.As a reminder, that statement was:

 

BACKUP DATABASE DIRECTORY ''

TRANSACTION LOG ONLY

TRANSACTION LOG TRUNCATE;

 

Of course, you could create a database EVENT and do the backup and truncate in a single step. For example:

 

CREATE EVENT ScheduledBackupEvent

SCHEDULE "daily_backup" BETWEEN '02:00' AND '02:59' ON ( 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' )

HANDLER

BEGIN

    BACKUP DATABASE DIRECTORY 'c:\\temp' TRANSACTION LOG TRUNCATE;

END;


Viewing all articles
Browse latest Browse all 2182

Trending Articles