Re: problem running sp_addpublication



Hi Adam,

I do have the same issue like while buidling my replication using
scripts it is giving the following error

Server: Msg 14294, Level 16, State 1, Procedure sp_verify_job_identifiers,
Line 24
Supply either @job_id or @job_name to identify the job

even if I have created the job for 'REPL-LogReader', before creating
publication it is throwing the same error, is there any way that I can solve
this error.

Please help.

Thanks
Ramesh


"Adam" wrote:

> Thank you Paul for your response. Your solution does make sense, however in
> my case the server name has not changed. I had forgotten to run the script to
> create jobs, running it seems to have solve the problem. I am pasting a part
> of that script to give you the idea.
>
> if (select count(*) from msdb.dbo.syscategories where name =
> N'REPL-LogReader') < 1
> execute msdb.dbo.sp_add_category N'REPL-LogReader'
>
> Thanks.
> -A
>
> "Paul Ibison" wrote:
>
> > Adam,
> >
> > I suggest running profiler to see what are the parameters being sent to this
> > procedure and to debug where the process is going wrong. The most likely
> > cause is a changed servername, as the error is raised in several system
> > procedures and the code is usually of the form....
> >
> > select @distribution_jobid = job_id from msdb..sysjobs_view where
> > name = @name and
> > UPPER(originating_server) = UPPER(CONVERT(sysname,
> > SERVERPROPERTY('ServerName')))
> > if @distribution_jobid IS NULL
> > begin
> > -- Message from msdb.dbo.sp_verify_job_identifiers
> > RAISERROR(14262, -1, -1, 'Job', @name)
> > GOTO UNDO
> > end
> >
> > So, if your servername has changed, this could be the cause of the problem.
> > In this case:
> >
> > Use Master
> > go
> > Select @@Servername
> >
> > This should return your current server name but if it
> > returns NULL then try:
> > Use Master
> > go
> > Sp_DropServer 'OldName'
> > GO
> > Use Master
> > go
> > Sp_Addserver 'NewName', 'local'
> > GO
> > Stop and Start SQL Services
> >
> > Cheers,
> > Paul Ibison SQL Server MVP, www.replicationanswers.com
> > (recommended sql server 2000 replication book:
> > http://www.nwsu.com/0974973602p.html)
> >
> >
> >
.



Relevant Pages

  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script Runs perfectly fine from the command prompt. ... # This is the main Apache HTTP server configuration file. ... LoadModule actions_module modules/mod_actions.so ...
    (perl.beginners)
  • Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Regarding a selection for mobile code/scripting language
    ... Client Side scripting, so the server can send script commands to the client. ... I decided they should be scripted and mobile code. ...
    (Vuln-Dev)
  • Re: HTTPSConnection script fails, but only on some servers (long)
    ... (HTTP/CONNECT + switch to HTTPS) ... wget and my python script. ... >>The python script works with server A, ... the problem seems to depend on both the client ...
    (comp.lang.python)