Hi,
Why doesn't this work:
CREATE PROCEDURE myProc @JobName NVARCHAR(400)
AS
BEGIN
EXEC sp_add_job
@job_name = @JobName, --@JobName is a parameter
@delete_level = 0
END
Error message:
Cannot add rows to sysdepends for the current object because it depends on the missing object 'sp_add_job'. The object will still be created.
Thanks
Why doesn't this work:
CREATE PROCEDURE myProc @JobName NVARCHAR(400)
AS
BEGIN
EXEC sp_add_job
@job_name = @JobName, --@JobName is a parameter
@delete_level = 0
END
Error message:
Cannot add rows to sysdepends for the current object because it depends on the missing object 'sp_add_job'. The object will still be created.
Thanks