Solved

DTS Schedule Fails

Posted on 2006-11-02
6
288 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
[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
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
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

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
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 information from SQL Server on Database, Connection and Server properties

728 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