Report this

What is the reason for this report?

What's the easiest way to setup automatic nightly SQL script executions?

Posted on September 25, 2020

Hi there,

I was wondering how I could most easily setup nightly SQL script executions using the RDBMS here. I’m hoping to build a MySQL or Microsoft SQL Server database (as I learned how to use these in college) here for a personal learning project.

Every night, I’d like to run some CRUD queries to update my tables. Can anyone please point me in the right direction?

Thank you!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
0

Hi @nirox,

My suggestion would be for you to use cron jobs. The cron jobs should be executed at night whenever you want and they should be scripts. In these scripts, you can specify what database queries to be done. I think that’s the best option and one that is largely used in most setups!

Regards, KFSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.