dbTalk Databases Forums  

DTS export data from Sqlserver to MDB

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


Discuss DTS export data from Sqlserver to MDB in the microsoft.public.sqlserver.dts forum.



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

Default DTS export data from Sqlserver to MDB - 11-12-2004 , 10:10 PM






Hi there,

I setup a DTS package to export a table from sql server to microsoft acess
database stored on the network drive. Z:\(0) Payment
Cosolidate\Payment_Transfer.MDB

I can execute the DTS package from Enterprise Manager but I want to allow my
boss to be able to export this table by himself so I decided to create a
store procedure and call it from ASP.net page.

However when I execute the storeprocedure using
EXECUTE master..xp_cmdshell 'dtsrun /S localhost /N
Export_PaymentFromSQL_To_MDB /E'

I got an error message saying that :
... Error string: 'Z:\(0) Payment Cosolidate\Payment_Transfer.MDB' is not a
valid path is not a valid path. Make sure that the path name is spelled
correctly and that you are connected to the server on which the file
resides. ...

How can I fix this problem?
Is there any otherway to execute DTS package from store procedure without
using the 'dtsrun utilities'?

Regards,
Kids



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

Default Re: DTS export data from Sqlserver to MDB - 11-13-2004 , 04:24 AM






Remember DTS is a client application and everything you see and do is
relative to the place that you press the "Go" button. The drive letter you
specify (Z) would seem to be a mapped drive and is therefore speific to a
user so I would try altering the location of the Access MDB to a UNC path

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"kids_pro" <kids_pro (AT) yahoo (DOT) com> wrote

Quote:
Hi there,

I setup a DTS package to export a table from sql server to microsoft acess
database stored on the network drive. Z:\(0) Payment
Cosolidate\Payment_Transfer.MDB

I can execute the DTS package from Enterprise Manager but I want to allow
my boss to be able to export this table by himself so I decided to create
a store procedure and call it from ASP.net page.

However when I execute the storeprocedure using
EXECUTE master..xp_cmdshell 'dtsrun /S localhost /N
Export_PaymentFromSQL_To_MDB /E'

I got an error message saying that :
.. Error string: 'Z:\(0) Payment Cosolidate\Payment_Transfer.MDB' is not a
valid path is not a valid path. Make sure that the path name is spelled
correctly and that you are connected to the server on which the file
resides. ...

How can I fix this problem?
Is there any otherway to execute DTS package from store procedure without
using the 'dtsrun utilities'?

Regards,
Kids





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.