About 1,040,000 results
Open links in new tab
  1. sp_add_jobstep (Transact-SQL) - SQL Server | Microsoft Learn

    Aug 23, 2024 · Applies to: SQL Server Azure SQL Managed Instance. Adds a step (operation) to a SQL Server Agent job. Transact-SQL syntax conventions. Important. On Azure SQL …

  2. Create a Transact-SQL Job Step | Microsoft Learn

    This topic describes how to create a Microsoft SQL Server Agent job step that executes Transact-SQL scripts in SQL Server by using SQL Server Management Studio, Transact-SQL, or SQL …

  3. How do I create a step in my SQL Server Agent Job which will run …

    If you're building the job using the sp_add... procs, I think you need to explicitly set the subsystem to be called, a la EXEC sp_add_jobstep @job_id = @jobid, @step_name = N'Upload Data', …

  4. sql server - How to pass a parameter to a SQL Job that will …

    I have the below code (only the portion that is needed) EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N'SomeStep', @step_id=1, …

  5. Add a Job Step to an Existing SQL Server Agent Job (T-SQL)

    Dec 16, 2020 · When you create a SQL Server Agent job with T-SQL, you use the sp_add_jobstep stored procedure to add each job step. If you ever need to add a new step to …

  6. How can I schedule a job to run a SQL query daily?

    To do this in t-sql, you can use the following system stored procedures to schedule a daily job. This example schedules daily at 1:00 AM. See Microsoft help for details on syntax of the …

  7. Simple way to create a SQL Server Job Using T-SQL

    Oct 15, 2021 · The sp_add_job is a procedure in the msdb database that creates a job. EXEC dbo.sp_add_job @job_name = @job . The sp_add_jobstep creates a job step in the job …

  8. Create a SQL Server Agent Job using SSMS - Database.Guide

    Dec 14, 2020 · SQL Server Agent is a Microsoft Windows service that executes scheduled administrative tasks, which are called jobs in SQL Server. You can create SQL Server Agent …

  9. Create a SQL Server Agent Job using T-SQL - Database.Guide

    Dec 14, 2020 · Here’s an example of the code used to create and schedule a SQL Server Agent job. @job_name = N'BackupPetHotelDB' ; . @job_name = N'BackupPetHotelDB', . …

  10. Create a SQL Server Agent Job in SSMS | Microsoft Learn

    This article explains how to create a SQL Server Agent job using SQL Server Management Studio (SSMS), Transact-SQL (T-SQL), or SQL Server Management Objects (SMO). To add job …

  11. Some results have been removed