Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 27th, 2004, 04:29 PM
Authorized User
 
Join Date: Dec 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Scheduling DTS Package

I created a DTS Package and I am trying to schedule it to run. The package runs fine when I run it manually, but when I try to schedule it to run, it fails. Can you provide me with some assistance in setting it up to run. Your help would be greatly appreciated.


 
Old April 27th, 2004, 04:40 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

When you schedule a package make sure you use your services account that has the right permission to execute DTS packages. Make sure that account has access to the msdb database. On the job "Owner" name select the account which will run your job ( which I suggest "SA".


 
Old April 28th, 2004, 01:18 PM
Authorized User
 
Join Date: Dec 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry. This is my first time using DTS. How do I determine the services account that has the right permission to execute DTS packages?

 
Old April 28th, 2004, 03:39 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

If your are running your SQLSERVERAGENT you set an account to run your services;under certain situation (before sp3a) this account was an admin account with server administrator role in SQL. In order for you to run execute DTS packages you must make sure the account has at least dbowner on the msdb database. Once this is done; on Enterprise Manager drill down
-->data transformation Services
-->local packages
--> right click your DTS Package
--> select schedule package
Schedule how you want in to run
Under General you should see "Owner"
select "SA" from the drop down list
That account is has the highest permission and privileges on your database.

I hope this helps. If it does not i will email you the screen shots

 
Old April 28th, 2004, 11:54 PM
Authorized User
 
Join Date: Dec 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I followed the steps you listed, but the job failed when it was scheduled to run. I received the following message in the Job History:

The job failed. The Job was invoked by Schedule 16 (Dashboard Reporting Data Extracts). The last step to run was step 1 (Dashboard Reporting Data Extracts).

 
Old April 29th, 2004, 06:52 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

Try running directly from the server. using the SA account

 
Old April 29th, 2004, 09:16 AM
Authorized User
 
Join Date: Dec 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try running the scheduled job or the package? Can I change the owner of the job to the SA Account? I did change the owner of the job to SA.

When I try Start job, I get the same message I listed before. The only difference is that is says the job was invoked by my user name.


 
Old April 29th, 2004, 09:40 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

That means you either log on to the server using your user name (using windows authentication) can your service account log on to the server. You must use this account to log on to the server then invoke that job using the service account credentials.

are you an SA on SQL?
if your not add your self to the sys administrator account and test it.

 
Old April 29th, 2004, 02:13 PM
Authorized User
 
Join Date: Dec 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

With the DTS package I am writing data to an excel file onto a server. I think my problem is that the sql services account does not have permissions to write to this server.

 
Old April 29th, 2004, 04:15 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

If that is the case you are right. The at account must have permission to log on to the server where your file exist.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduling - SSIS package carumuga SQL Server DTS 0 October 10th, 2008 01:50 AM
scheduling a DTS package psugak SQL Server DTS 3 March 29th, 2007 01:26 PM
Scheduling package with sequence container wssaravanan SQL Server 2005 0 June 27th, 2006 06:56 AM
Scheduling DTS task on SQL Server 2005 ahamilto SQL Server DTS 4 March 29th, 2006 01:51 PM
Problem Scheduling a job on DTS package. pooh2323 SQL Server DTS 2 February 12th, 2004 02:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.