dbTalk Databases Forums  

run a dts package from asp.net passing the filename to the package

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


Discuss run a dts package from asp.net passing the filename to the package in the microsoft.public.sqlserver.dts forum.



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

Default run a dts package from asp.net passing the filename to the package - 07-19-2005 , 04:40 AM






Hi all,

im learning ASP.net and i want to be able to use DTS to load data into the
SQL Database using DTS, which i can using a fixed filename for example
"test.txt". does anyone know where there is a good example showing how to
pass a filename to the DTS package from runtime.


Regards
Simon



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

Default Re: run a dts package from asp.net passing the filename to the package - 07-19-2005 , 05:21 AM






You can use a number of methods

1. DTSRUN and the /A switch
2. Dynamic Properties Task within the package
3. Setting the filename through code within the package
4. Use the ASP.Net application to get the name of the file and before
calling Execute() on the Package object you go in and change it through the
object model.


Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)

How can I change the filename for a text file connection?
(http://www.sqldts.com/default.aspx?200)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Simon Whale" <simon (AT) noway (DOT) ukdatait.com> wrote

Quote:
Hi all,

im learning ASP.net and i want to be able to use DTS to load data into the
SQL Database using DTS, which i can using a fixed filename for example
"test.txt". does anyone know where there is a good example showing how to
pass a filename to the DTS package from runtime.


Regards
Simon




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.