Wednesday, July 21, 2010

Some things about SMO ?

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"


Can anyone help?

SIBA

0 comments:

Post a Comment