Solved

DTS Schedule Fails

Posted on 2006-11-02
6
285 Views
Last Modified: 2013-11-30
Hello you DTS Guru's,

I have several DTS jobs that have failed after a change to the account that starts the SQL Service.

My question is - does the account that starts the service and the owner of the SQL job need to be the same?

And does this account need to be the one that connects to SQL in the DTS designer?

Thanx

Steve
0
Comment
Question by:SteveH3897
6 Comments
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 17863277
>> My question is - does the account that starts the service and the owner of the SQL job need to be the same?

>> And does this account need to be the one that connects to SQL in the DTS designer?

That depends. Are you using wnidows authentication in your connections? If so then the windows user it will use the SQL Agent service account. (when the DTS is scheduled)


So what exactly is the error you are seeing in the job log/DTS log?
0
 

Author Comment

by:SteveH3897
ID: 17863382
Hello,

Yes the SQL Agent Service Account is a Windows Account.

The error I get in the log:
Step Error Source: Microsoft Data Transformation Services Flat File Rowset Provider
Step Error Description:Error opening datafile: Logon failure: unknown user name or bad password.

Step Error code: 80004005
Step Error Help File:DTSFFile.hlp
Step Error Help Context ID:0

Thanx

Steve
0
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 17864072
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 29

Assisted Solution

by:Gautham Janardhan
Gautham Janardhan earned 60 total points
ID: 17864079
Domain user accounts must have permission to:
 
1) Access and change the SQL Server directory or any other directory that involves file sharing by a task.
2) Access and change the .mdf, .ndf, and .ldf database files.
3) Log on as a service.
4) Read and write registry keys.

If the startup account assigned to the MSSQLServer Service is not a member of the Local Administrators group, or if the BUILTIN\Administrators SQL Server login has been removed, you must add the startup account for the MSSQLServer service or the SQLServerAgent service, or both, to the SQL Server system administrators (sysadmin) role.

Grant the [Domain\NTaccount] user a logon to SQL Server.
0
 
LVL 11

Accepted Solution

by:
rw3admin earned 65 total points
ID: 17864177
Just little more on that....in EM click on your local packages under DTS and you will see all the DTS packages along with the owner name, thats one place where you want to check the validity of the owner name, second is where the package is actually scheduled to run as a job, if it was setup by right clicking on DTS package name and choosing schedule then you will have lots of fun :), as you will see a encrypted string for your DTSrun command.

now look up dtsrun in BOL and you will see it asks for Package name, Server, Username & pwd, if all of that info is encrypted then you will have to drop this job and re-create again by following the above mentioned step or explicitly use the example in DTSrun...

third thing to look at is actual SQL job, right click on job name and click on properters on the main window choose the appropriate user ( I would say 'sa' or any network user who has sysadmin role on your server).....

this should fix it

0
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 17878129
>> Flat File Rowset Provider

It looks like you are attempting to import a flat file? Therefore your SQL Agent account needs to have read access to the share that the flat file is on.


0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

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 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
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

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

18 Experts available now in Live!

Get 1:1 Help Now