Solved

SQL Server Agent Job Always Fails???

Posted on 2008-10-29
6
751 Views
Last Modified: 2008-11-10
I am trying to use the Copy Database Wizard to copy a database from a remote server.  The process seems pretty straightforward but the job always fails.  

Once the job starts, it will return a status of Success on everything  except "Execute SQL Server Agent Job".

Add log for package  -  Success
Add task for transferring database objects  -  Success
Create package  -  Success
Start SQL Server Agent Job  -   Success
Execute SQL Server Agent Job  -  ERROR

After reviewing the log, the only protion that seems to relate to an error is shown below ...

OnError,HP9640,NT AUTHORITY\SYSTEM,12_7_146_218_HP9640_Transfer Objects Task,{AF102D8C-5A41-4CCF-9D29-DD90880820F8},{888498C1-24DA-4052-8DF4-8EA9C543ED6E},10/29/2008 1:34:04 PM,10/29/2008 1:34:04 PM,0,0x,The StoredProcedure '[dbo].[taFormatStringsForExecs]' cannot be scripted as its data is not accessible.
StackTrace:    at Microsoft.SqlServer.Management.Smo.Scripter.ScriptWithList(DependencyCollection depList, SqlSmoObject[] objects)

Any help will be appreciated.

Thanks,

ET

0
Comment
Question by:Eric Sherman
  • 3
  • 3
6 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 22834389
Make sure the user that runs sql agent has permission to do that....
0
 
LVL 19

Author Comment

by:Eric Sherman
ID: 22834458
>>Make sure the user that runs sql agent has permission to do that....<<

I am logged into my machine (Vista) as Admin and this is the Destination server.  Is that what you are referring to???

ET
0
 
LVL 60

Assisted Solution

by:chapmandew
chapmandew earned 250 total points
ID: 22834990
Since your running a SQL Agent job, the agent runs under a user context.  In Services, look at SQL Agent and find what user it is running under.  It is possible that user is not able to access the other server....does that make sense?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 19

Author Comment

by:Eric Sherman
ID: 22835318
Ok, yes that's makes sense.

I looked at  Services >> SQL Server Agent >> Properties >> LogOn  and Local System Account is selected.   Probably need to select "This Account' and specify a valid login/pswd for the remote server.  Is that correct???

ET
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 22835336
Indeed...try to use a domain account if you can.
0
 
LVL 19

Accepted Solution

by:
Eric Sherman earned 0 total points
ID: 22890217
Still no luck and now the machine that I have SQL Server 2005 Eval Edition running on has now crashed.  I will have to use the method where the DB is backed up and restored rather than trying to make Copy DB Wizard work.

Thanks for your comments and effort.

ET
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now