all groups > sql server dts > november 2004 >
You're in the

sql server dts

group:

DTS: Cannot access file


DTS: Cannot access file John Criswell
11/18/2004 3:13:02 PM
sql server dts:
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
Re: Cannot access file Jack Peacock
11/19/2004 11:22:29 AM
[quoted text, click to view]
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

Re: Cannot access file Francesco Anti
11/19/2004 3:56:56 PM
Check if the account under which SQL server Agent runs has the right to
access the file.

[quoted text, click to view]

AddThis Social Bookmark Button