Hi,
I have created an SQL job from a Delphi application using ADO. Mainly I have used the sp_add_job and associated commands. I have added a job, 2 steps and a schedule.
I then query the job I created for the job_id and insert into msdb..sysjobservers. I do this to get the runnabke status of the job to say 'Yes' instead of 'No (Add Target servers to this job)'.
The problem I am left with is that the Next Run Date says 'Date and Time not available'. Before running the above insert into msdb..sysjobservers I could go into the job in Ent Mgr and open it up change anything and click apply and all my problems were solved. (but only before I do the insert, not after)
But I need to create this job without Ent Mgr Access, the whole process needs to be automated.
Has anyone ever seen this because it has me beat. I have looked at all the sysjob% tables in msdb, before and after and there is no difference.
Thanx!
Dave Shaw
I have created an SQL job from a Delphi application using ADO. Mainly I have used the sp_add_job and associated commands. I have added a job, 2 steps and a schedule.
I then query the job I created for the job_id and insert into msdb..sysjobservers. I do this to get the runnabke status of the job to say 'Yes' instead of 'No (Add Target servers to this job)'.
The problem I am left with is that the Next Run Date says 'Date and Time not available'. Before running the above insert into msdb..sysjobservers I could go into the job in Ent Mgr and open it up change anything and click apply and all my problems were solved. (but only before I do the insert, not after)
But I need to create this job without Ent Mgr Access, the whole process needs to be automated.
Has anyone ever seen this because it has me beat. I have looked at all the sysjob% tables in msdb, before and after and there is no difference.
Thanx!
Dave Shaw