dbTalk Databases Forums  

DTS Access Error

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


Discuss DTS Access Error in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Peter Newman
 
Posts: n/a

Default DTS Access Error - 10-25-2005 , 05:11 AM






I've been trying to get a stroed procedure to execute a DTS and have come up
with a baffling problem. The DTS has a Text FIle Source connection whice the
file name is set via a global variable. When i run the DTS from the
Enterprise manager it runs fine, importing a file from across the network,
however when trying to run it from a stored procedure the steps prior to the
data import work fine but i get an error as follows;

Step Error Source: Microsoft Data Transformation Services Flat File Rowset
Provider
Step Error Description:Error opening datafile: Access is denied.

In the stored proc i am still conecting with the same user name & password
as i do with the enterprise manager. I am at a loss as to why this is
happining ... any ideas or suggestions ?



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

Default Re: DTS Access Error - 10-25-2005 , 01:32 PM






Hello Peter,

How are you calling it in an Proc?

xp_cmdshell? Have look here

http://msdn.microsoft.com/library/de...aa-sz_4jxo.asp


It almost certainly is permissions/transferral of executor.

Allan


Quote:
I've been trying to get a stroed procedure to execute a DTS and have
come up with a baffling problem. The DTS has a Text FIle Source
connection whice the file name is set via a global variable. When i
run the DTS from the Enterprise manager it runs fine, importing a file
from across the network, however when trying to run it from a stored
procedure the steps prior to the data import work fine but i get an
error as follows;

Step Error Source: Microsoft Data Transformation Services Flat File
Rowset
Provider
Step Error Description:Error opening datafile: Access is denied.
In the stored proc i am still conecting with the same user name &
password as i do with the enterprise manager. I am at a loss as to
why this is happining ... any ideas or suggestions ?




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.