Solved

SQL Server Agent Job Always Fails???

Posted on 2008-10-29
6
769 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

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 …
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

726 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