Solved

DTS Schedule Fails

Posted on 2006-11-02
6
286 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

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

Suggested Solutions

Title # Comments Views Activity
sql server insert 12 30
T-SQL: "HAVING CASE" Clause 1 25
sql select record as one long string 21 24
MS SQL Server COnditional Where statement 7 58
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.
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
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…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

777 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