Stored Procedure Fails Only When Called By Agent
From: Erik Nelson (cybermud_at_excite.com)
Date: 05/06/04
- Previous message: Nupee: "Performance Tuning Transactional Replication"
- Next in thread: Paul Ibison: "Re: Stored Procedure Fails Only When Called By Agent"
- Reply: Paul Ibison: "Re: Stored Procedure Fails Only When Called By Agent"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 6 May 2004 14:54:34 -0500
I have three stored procedures that do the flowing tasks:
1. connect to and add logins for 12 remote (WAN) SQL servers
2. Drop data on the local server and re-add it table at a time from each
remote server, one at a time, for 5 tables.
3. Disconnect from the sites.
These stored procedures work fine when run from Query Analyzer, but when I
schedule them to run automatically via an agent job, the job fails on
procedure #2 which copies the data. I get an error message of "Msg 17, Sev
16: SQL Server does not exist or access denied. [SQLSTATE 42000]" in the
error log, which seems like a rights issue to me, but I don't know where to
look to correct it. Can anyone point me to any documentation that will
explain how the agent executes jobs?
Thanks,
Erik
- Previous message: Nupee: "Performance Tuning Transactional Replication"
- Next in thread: Paul Ibison: "Re: Stored Procedure Fails Only When Called By Agent"
- Reply: Paul Ibison: "Re: Stored Procedure Fails Only When Called By Agent"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|