Hey,
I have got two problems using SMO.
First I cannot start and stop the SQL Server Agent.
What property should I use I can only found
server.jobserver.restart but this didn't work.
Second Question is how to start a job from the server.jobserver.jobs.
Is it Job.start or Job.invoke I got an error message "Start failed for job "My Job" "
And how can I get the current status if a job is running, if it succeeded or failed.
I found: AJob.State which says that my job is idle and
AJob.LastRunOutcome which is false after I called AJob.start
Can anyone help
grtz,
Bart