dbTalk Databases Forums  

DTS Package files under stored procedure - only.

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


Discuss DTS Package files under stored procedure - only. in the microsoft.public.sqlserver.dts forum.



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

Default DTS Package files under stored procedure - only. - 08-05-2003 , 02:33 PM






I apologize for the dual posting in microsoft.public.sqlserver, now...

[ To continue ]
I have a DTS package that imports a text file from a UNC path.

Right clincking and executing under Enterprise Manager produces successul
imports of data. However running the DTS package by invoking it from within
a stored procedure causes the package to fail with the following results.

DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDataPumpTask_1
DTSRun OnError: DTSStep_DTSDataPumpTask_1, 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: DTSStep_DTSDataPumpTask_1
DTSRun: Package execution complete.

Can someone please explain to me what the problem is here? I am invoking
the DTS package in the following manner within the storded procedure.

exec master..xp_cmdshell 'dtsrun /Sdsisql /NPryor_Import_Seminar_Data /E'
; --, NO_OUTPUT;

Thanks,
Andrew






Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: DTS Package files under stored procedure - only. - 08-06-2003 , 06:31 AM







Have a read of the xp_cmdshell topic under Books Online, in particular the
section that relates to the security context. This is normally the SQL
Server service's service account. What is your service account and does it
have permissions to access the UNC share and file?


--
Darren Green
http://www.sqldts.com


"Andrew" <afriedl (AT) data-source (DOT) com> wrote

Quote:
I apologize for the dual posting in microsoft.public.sqlserver, now...

[ To continue ]
I have a DTS package that imports a text file from a UNC path.

Right clincking and executing under Enterprise Manager produces successul
imports of data. However running the DTS package by invoking it from
within
a stored procedure causes the package to fail with the following results.

DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDataPumpTask_1
DTSRun OnError: DTSStep_DTSDataPumpTask_1, 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: DTSStep_DTSDataPumpTask_1
DTSRun: Package execution complete.

Can someone please explain to me what the problem is here? I am invoking
the DTS package in the following manner within the storded procedure.

exec master..xp_cmdshell 'dtsrun /Sdsisql /NPryor_Import_Seminar_Data /E'
; --, NO_OUTPUT;

Thanks,
Andrew








Reply With Quote
  #3  
Old   
Andrew
 
Posts: n/a

Default Re: DTS Package files under stored procedure - only. - 08-06-2003 , 11:21 AM



This is definately a permissions problem. Any idea about how to go about
solving it?

"Andrew" <afriedl (AT) data-source (DOT) com> wrote

Quote:
I apologize for the dual posting in microsoft.public.sqlserver, now...

[ To continue ]
I have a DTS package that imports a text file from a UNC path.

Right clincking and executing under Enterprise Manager produces successul
imports of data. However running the DTS package by invoking it from
within
a stored procedure causes the package to fail with the following results.

DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDataPumpTask_1
DTSRun OnError: DTSStep_DTSDataPumpTask_1, 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: DTSStep_DTSDataPumpTask_1
DTSRun: Package execution complete.

Can someone please explain to me what the problem is here? I am invoking
the DTS package in the following manner within the storded procedure.

exec master..xp_cmdshell 'dtsrun /Sdsisql /NPryor_Import_Seminar_Data /E'
; --, NO_OUTPUT;

Thanks,
Andrew








Reply With Quote
  #4  
Old   
Darren Green
 
Posts: n/a

Default Re: DTS Package files under stored procedure - only. - 08-06-2003 , 02:43 PM



In article <udX2#UDXDHA.384 (AT) TK2MSFTNGP12 (DOT) phx.gbl>, Andrew
<afriedl (AT) data-source (DOT) com> writes
Quote:
This is definately a permissions problem. Any idea about how to go about
solving it?

"Andrew" <afriedl (AT) data-source (DOT) com> wrote in message
news:llTXa.63517$Mg1.43330 (AT) fe07 (DOT) atl2.webusenet.com...
I apologize for the dual posting in microsoft.public.sqlserver, now...

[ To continue ]
I have a DTS package that imports a text file from a UNC path.

Right clincking and executing under Enterprise Manager produces successul
imports of data. However running the DTS package by invoking it from
within
a stored procedure causes the package to fail with the following results.

DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDataPumpTask_1
DTSRun OnError: DTSStep_DTSDataPumpTask_1, 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: DTSStep_DTSDataPumpTask_1
DTSRun: Package execution complete.

Can someone please explain to me what the problem is here? I am invoking
the DTS package in the following manner within the storded procedure.

exec master..xp_cmdshell 'dtsrun /Sdsisql /NPryor_Import_Seminar_Data /E'
; --, NO_OUTPUT;

Thanks,
Andrew

Find out the SQL Server service's service account. Make sure it is a
domain account (assuming both machine are running in a domain). You will
then need to log onto he source machine and change the permissions on
the share and add a minimum of read for the service account.

If you are in a workgroup create a mirrored account, same user name and
password on both machines. Add permissions for the share as above.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com




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.