dbTalk Databases Forums  

Pass parameters to a DTS

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


Discuss Pass parameters to a DTS in the microsoft.public.sqlserver.dts forum.



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

Default Pass parameters to a DTS - 10-17-2003 , 01:56 PM






Hi,

I'm using a DTS to read an excel file and convert it into
a SQL table. I can do that but I need to pass the name of
the file as a parameter read from a VB screen.

Can anybody help me, please

Thanks in advance

Sonia


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

Default Re: Pass parameters to a DTS - 10-18-2003 , 05:47 AM






How do you call the DTS package ?

Using the object model then have a look at this

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

Using DTSRUN.

If you are using 2000 then look at Global Variables and the /A switch



--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Sonia Martinez" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I'm using a DTS to read an excel file and convert it into
a SQL table. I can do that but I need to pass the name of
the file as a parameter read from a VB screen.

Can anybody help me, please

Thanks in advance

Sonia




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.