Solved

DTS Schedule Fails

Posted on 2006-11-02
6
284 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
Comment Utility
>> 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
Comment Utility
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
Comment Utility
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 29

Assisted Solution

by:Gautham Janardhan
Gautham Janardhan earned 60 total points
Comment Utility
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
Comment Utility
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
Comment Utility
>> 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

763 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

7 Experts available now in Live!

Get 1:1 Help Now