JeffMachine
MIS
I've created a DTS package that exports data from a Excel spreadsheet into a sql table. It works fine when run from the Enterprise Manager. But it errors out when run from a stored procedure.
Stored Procedure:
CREATE PROCEDURE [run_haas_po_import] AS
exec master..xp_cmdshell 'dtsrun /S SQLSERVER /N "haas po import" /E '
Error:
DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: Copy Data from Sheet1$ to [Data_41].[dbo].[haas_po_import] Step
DTSRun OnError: Copy Data from Sheet1$ to [Data_41].[dbo].[haas_po_import] Step, Error = -2147008507 (80074005)
Error string: Unspecified error
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts.hlp
Help context: 700
Error Detail Records:
Error: -2147008507 (80074005); Provider Error: 0 (0)
Error string: Unspecified error
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts.hlp
Help context: 700
Error: -2147467259 (80004005); Provider Error: -329978796 (EC54EC54)
Error string: Failure creating file.
Error source: Microsoft JET Database Engine
Help file:
Help context: 5003436
DTSRun OnFinish: Copy Data from Sheet1$ to [Data_41].[dbo].[haas_po_import] Step
DTSRun: Package execution complete.
Any ideas? Thanks in advance ......
Stored Procedure:
CREATE PROCEDURE [run_haas_po_import] AS
exec master..xp_cmdshell 'dtsrun /S SQLSERVER /N "haas po import" /E '
Error:
DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: Copy Data from Sheet1$ to [Data_41].[dbo].[haas_po_import] Step
DTSRun OnError: Copy Data from Sheet1$ to [Data_41].[dbo].[haas_po_import] Step, Error = -2147008507 (80074005)
Error string: Unspecified error
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts.hlp
Help context: 700
Error Detail Records:
Error: -2147008507 (80074005); Provider Error: 0 (0)
Error string: Unspecified error
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts.hlp
Help context: 700
Error: -2147467259 (80004005); Provider Error: -329978796 (EC54EC54)
Error string: Failure creating file.
Error source: Microsoft JET Database Engine
Help file:
Help context: 5003436
DTSRun OnFinish: Copy Data from Sheet1$ to [Data_41].[dbo].[haas_po_import] Step
DTSRun: Package execution complete.
Any ideas? Thanks in advance ......