Execute job on remote server through T-SQL

  • I am executing a job by way of: exec linkedserver.msdb..sp_start_job @job_name = 'JobName'

    the job runs on the remote server but i receive the below error message on the remote server:

    Msg 0, Level 11, State 0, Line 0

    A severe error occurred on the current command. The results, if any, should be discarded.

    I am wondering if there is a way to avoid this error.

  • I forgot to state that the local server is SQL Server 2000 and the remote server is SQL Server 2005 sp3 64bit.

  • Hey there,

    I was wondering if you ever found an answer to this? I have two SQL Server 2000 SP3 (yeah I know - but there is a contractual reason for it) and I get the same error when executing sp_start_job. The job starts on the remote server, and completes OK, but the error mentioned in your post above is generated immediately and kinda breaks the logic of what we are doing.

    Cheers,

    Scott.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply