{"id":19165,"date":"2017-03-17T09:00:00","date_gmt":"2017-03-17T16:00:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/dataplatforminsider\/?p=19165"},"modified":"2024-01-22T22:50:45","modified_gmt":"2024-01-23T06:50:45","slug":"sql-server-on-linux-running-jobs-with-sql-server-agent","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-us\/sql-server\/blog\/2017\/03\/17\/sql-server-on-linux-running-jobs-with-sql-server-agent\/","title":{"rendered":"SQL Server on Linux: Running jobs with SQL Server Agent"},"content":{"rendered":"

In keeping with our goal to enable SQL Server features across all platforms supported by SQL Server, Microsoft is excited to announce the preview of SQL Server Agent on Linux in SQL Server vNext Community Technology Preview (CTP) 1.4.<\/p>\n

SQL Server Agent is a component that executes scheduled administrative tasks, called \u201cjobs.\u201d Jobs contain one or more job steps. Each step contains its own task such as backing up a database. SQL Server Agent can run a job on a schedule, in response to a specific event, or on demand. For example, if you want to back up all the company databases every weekday after hours, you can automate doing so by scheduling an Agent job to run a backup at 22:00 Monday through Friday.<\/p>\n

We have released SQL Server Agent packages for Ubuntu, RedHat Enterprise Linux, and SUSE Linux Enterprise Server that you can install via apt-get, yum, and zypper<\/a>. Once you install these packages, you can create T-SQL Jobs using SSMS, sqlcmd, and other GUI and command line tools.<\/p>\n

Here is a simple example:<\/p>\n