Solved

SQL Server Agent Job Always Fails???

Posted on 2008-10-29
6
748 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
Comment Utility
Make sure the user that runs sql agent has permission to do that....
0
 
LVL 19

Author Comment

by:Eric Sherman
Comment Utility
>>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
Comment Utility
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
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 19

Author Comment

by:Eric Sherman
Comment Utility
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
Comment Utility
Indeed...try to use a domain account if you can.
0
 
LVL 19

Accepted Solution

by:
Eric Sherman earned 0 total points
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

743 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

16 Experts available now in Live!

Get 1:1 Help Now