Backing up Sybase

Questions and answers regarding general SQL and backend databases

Backing up Sybase

Postby Riccardino » Wed Apr 28, 2004 5:43 pm

Hi,

is it possible to backup Sybase making a hot copy of the "database" folder located into Servoy app folder or is it a dangerous procedure?
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Re: Backing up Sybase

Postby Riccardino » Sun May 02, 2004 12:03 pm

Update:

I read in Sybase documentation that is possible to perform an online backup using:
BACKUP DATABASE DIRECTORY "path"
I tried with Interactive SQL and it works fine.

Is it possible to trigger this command from within Servoy?
ciao, ric
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Postby Jan Aleman » Sun May 02, 2004 12:44 pm

Not directly, it is possible to trigger isql using executeProgram or even better to create a schedule to automatically backup your database. The last example in the documentation shows you how to do that. Doc path:

ASA SQL Reference
SQL Statements
BACKUP statement
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby Riccardino » Sun May 02, 2004 3:14 pm

jaleman wrote:Not directly, it is possible to trigger isql using executeProgram or even better to create a schedule to automatically backup your database. The last example in the documentation shows you how to do that. Doc path:

ASA SQL Reference
SQL Statements
BACKUP statement


Thanks Jan: I set an event and everything works. I also tried to attach a method to a database trigger and also this option works...:-)
ciao, ric
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Postby Harjo » Sun May 02, 2004 6:20 pm

I also tried to attach a method to a database trigger and also this option works...:-)


Can you explain this? or make an: HOW TO?
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Riccardino » Mon May 03, 2004 12:05 am

HJK wrote:
I also tried to attach a method to a database trigger and also this option works...:-)


Can you explain this? or make an: HOW TO?


Sure :wink:
ciao, ric
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 32 guests