Right, heres an IT ...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Right, heres an IT question for you (moon on a stick content)

5 Posts
4 Users
0 Reactions
53 Views
Posts: 0
Free Member
Topic starter
 

Ok, you have a program that configured properly, can add data to a SQL database

What I want to do is take a backup of that database just before the program runs. I've had a dig about on the internet but finding it hard to explain what I want to do. Basically, you double click to run the program that inserts the data, this kicks a batch file into life to take the database backup and drop it somewhere (a folder)

I was thinking some sort of scheduled task that works on the event of running the program, the batch file runs a SQL statement to take the backup

Am I dreaming just too darn big?


 
Posted : 20/04/2013 2:49 pm
Posts: 2
Free Member
 

Windows? Yes, a simple batch file could do this.
Do you have a command line access to the backup program or do you not even have a backup program?


 
Posted : 20/04/2013 2:53 pm
Posts: 0
Free Member
 

You can run SQL Server backups from the command line, so assuming your program can call a batch file,, away you go.

Edit: oops, misread the OP, not necessarily a SQL Server db!


 
Posted : 20/04/2013 2:54 pm
Posts: 0
Free Member
Topic starter
 

groovy.......its a work thing and could be written into the program.

No backup program, just access to the server


 
Posted : 20/04/2013 2:55 pm
Posts: 0
Free Member
 

[url= http://stackoverflow.com/questions/880487/sql-server-command-line-backup-statement ]Linky[/url]


 
Posted : 20/04/2013 2:57 pm
Posts: 12072
Full Member
 

What type of server is it? Oracle, SQL Server, ...

Not that it makes that much difference, it should be fairly easy regardless.


 
Posted : 20/04/2013 4:29 pm

6 DAYS LEFT
We are currently at 95% of our target!