Solved

SQL Server Agent Job Always Fails???

Posted on 2008-10-29
6
757 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

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 …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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

770 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