dbTalk Databases Forums  

DTS package from scheduled job fails

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS package from scheduled job fails in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christian Risager
 
Posts: n/a

Default DTS package from scheduled job fails - 02-26-2005 , 05:59 AM






Hi there.
I have implementet a koncept in SQLserver to import data
from an Access-database using DTS-package. There is no
problem starting the package from SQLserver Enterprise
mangager.
However, I want to execute the package from a third party
sql-interface, and therefore I made at scheduled job that
execute the package. No problem if the access database is
located on the same server as SQLserver Enterprise manager.
But if I place the Access-database on another server, map
the networkdrive from the SQLserver-server, the scheduled
job fails with an error: "...not a valid path...".
And I can still execute the package from within Enterprise
Manager without problems.
I have tried to change the owner of the job to variuos
users and administrators, but without any success.
I use this syntaks from a SQL-interface to start the job:
use msdb;EXEC sp_start_job @job_name
= 'fasdata_import';use <gis-database name>

1. Can I execute the package directly from an SQL-
interface?
2. If not - how do I overcome this error with the job
executing the package.

Best regards

Christian


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS package from scheduled job fails - 02-26-2005 , 06:13 AM






The problem more than likely lies in the fact that the user account
under which you execute the job has no idea about the mapped drive.
This is why it is a good idea to use UNC paths to reference files.

http://support.microsoft.com/?kbid=269074

Allan

"Christian Risager" <Christian Risager (AT) discussions (DOT) microsoft.com> wrote
in message news:Christian Risager (AT) discussions (DOT) microsoft.com:
Quote:
Hi there.
I have implementet a koncept in SQLserver to import data
from an Access-database using DTS-package. There is no
problem starting the package from SQLserver Enterprise
mangager.
However, I want to execute the package from a third party
sql-interface, and therefore I made at scheduled job that
execute the package. No problem if the access database is
located on the same server as SQLserver Enterprise manager.
But if I place the Access-database on another server, map
the networkdrive from the SQLserver-server, the scheduled
job fails with an error: "...not a valid path...".
And I can still execute the package from within Enterprise
Manager without problems.
I have tried to change the owner of the job to variuos
users and administrators, but without any success.
I use this syntaks from a SQL-interface to start the job:
use msdb;EXEC sp_start_job @job_name
= 'fasdata_import';use <gis-database name

1. Can I execute the package directly from an SQL-
interface?
2. If not - how do I overcome this error with the job
executing the package.

Best regards

Christian


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.