dbTalk Databases Forums  

DTS: Cannot access file

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


Discuss DTS: Cannot access file in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Criswell
 
Posts: n/a

Default DTS: Cannot access file - 11-18-2004 , 05:13 PM






I have created a DTS package. Now I have schedule the package to run under
the SQL Server scheduler. When I execute the package manually, it runs just
fine. When I run the job from the scheduler it fails. Below is the complete
error message. The package is simple. It opens a text file and copies the
contents to a SQL Server table. As you can see below, the job cannot open
the file. I really have no idea why this is happening. Any assistance will
be greatly appreciated.


DTSRun: Loading... DTSRun: Executing... DTSRun OnStart: Copy Data
from secinfo to [AdventFeeds].[dbo].[secinfo] Step DTSRun OnError: Copy
Data from secinfo to [AdventFeeds].[dbo].[secinfo] Step, Error = -2147217887
(80040E21) Error string: Error opening datafile: Access is denied.
Error source: Microsoft Data Transformation Services Flat File Rowset
Provider Help file: DTSFFile.hlp Help context: 0 Error
Detail Records: Error: 5 (5); Provider Error: 5 (5) Error string:
Error opening datafile: Access is denied. Error source: Microsoft
Data Transformation Services Flat File Rowset Provider Help file:
DTSFFile.hlp Help context: 0 DTSRun OnFinish: Copy Data from
secinfo to [AdventFeeds].[dbo].[secinfo] Step DTSRun: Package execution
complete. Process Exit Code 1. The step failed.

Reply With Quote
  #2  
Old   
Francesco Anti
 
Posts: n/a

Default Re: Cannot access file - 11-19-2004 , 08:56 AM






Check if the account under which SQL server Agent runs has the right to
access the file.

"John Criswell" <John Criswell (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have created a DTS package. Now I have schedule the package to run
under
the SQL Server scheduler. When I execute the package manually, it runs
just
fine. When I run the job from the scheduler it fails. Below is the
complete
error message. The package is simple. It opens a text file and copies
the
contents to a SQL Server table. As you can see below, the job cannot open
the file. I really have no idea why this is happening. Any assistance
will
be greatly appreciated.


DTSRun: Loading... DTSRun: Executing... DTSRun OnStart: Copy Data
from secinfo to [AdventFeeds].[dbo].[secinfo] Step DTSRun OnError: Copy
Data from secinfo to [AdventFeeds].[dbo].[secinfo] Step, Error
= -2147217887
(80040E21) Error string: Error opening datafile: Access is denied.
Error source: Microsoft Data Transformation Services Flat File Rowset
Provider Help file: DTSFFile.hlp Help context: 0 Error
Detail Records: Error: 5 (5); Provider Error: 5 (5) Error
string:
Error opening datafile: Access is denied. Error source:
Microsoft
Data Transformation Services Flat File Rowset Provider Help file:
DTSFFile.hlp Help context: 0 DTSRun OnFinish: Copy Data from
secinfo to [AdventFeeds].[dbo].[secinfo] Step DTSRun: Package execution
complete. Process Exit Code 1. The step failed.



Reply With Quote
  #3  
Old   
Jack Peacock
 
Posts: n/a

Default Re: Cannot access file - 11-19-2004 , 01:22 PM



"John Criswell" <John Criswell (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have created a DTS package. Now I have schedule the package to run under
the SQL Server scheduler. When I execute the package manually, it runs
just
fine. When I run the job from the scheduler it fails.

When you run a DTS from inside SQL it uses the sa login and permissions from
the default proxy domain account. To avoid this I run the package as a
scheduled task from Windows, using DTSRUN command line, with a specific user
naem for the job.
Jack Peacock




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.