Solved

SQL Server Agent Job Always Fails???

Posted on 2008-10-29
6
771 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

 
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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

707 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