Back up sql server task scheduler window
Running scheduled tasks in SQL Server Express has to be done differently due to the limitations of the Edition. As well as having a maximum database size of 10GB and 1GB consumable RAM, Express does include the SQL Server Agent. So, If you need a task to run on a time based schedule, you’ll have to look outside of SQL Server. Windows Task Scheduler is where I’d steer to, running a PowerShell or DOS script which utilises sqlcmd. The DOS approach is further explained within the following steps; # Locate/install sqlcmd . # Create .bat sqlcmd script . # Create Scheduled Task . The .bat script for this post will execute Ola Hallengren’s Index Maintenance , which I’ll set to run weekly on the Express instance of SQL. Ola’s index maintenance stored proc is assumed to be on the SQL Server for this task. Locate/Install Sqlcmd The sqlcmd utility is installed with SSMS, or you can download separate Windows & Linux clients . If you already have SSMS installed, yo...