p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   SQL Server DTS (http://p2p.wrox.com/forumdisplay.php?f=108)
-   -   Scheduling DTS Package (http://p2p.wrox.com/showthread.php?t=12343)

chiefg April 27th, 2004 04:29 PM

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.

jemacc April 27th, 2004 04:40 PM

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".

chiefg April 28th, 2004 01:18 PM

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

jemacc April 28th, 2004 03:39 PM

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

chiefg April 28th, 2004 11:54 PM

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).

jemacc April 29th, 2004 06:52 AM

Try running directly from the server. using the SA account

chiefg April 29th, 2004 09:16 AM

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.

jemacc April 29th, 2004 09:40 AM

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.

chiefg April 29th, 2004 02:13 PM

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.

jemacc April 29th, 2004 04:15 PM

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

All times are GMT -4. The time now is 10:50 PM.

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