dbTalk Databases Forums  

Open File Dialog from DTS

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


Discuss Open File Dialog from DTS in the microsoft.public.sqlserver.dts forum.



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

Default Open File Dialog from DTS - 11-08-2005 , 04:32 PM






Hello all,

I would like to use the "Open File" dialog box from within the DTS
package to select the source text file to import. But it doesn't look
like the "GetOpenFilename" method is available to me in SQL Server's
VB script.

Is there another way to use the "Open File" dialog box from VB script?
Is there a way I can get the VB script in SQL Server to reference a
library that has the "GetOpenFilename" method in it?

Thanks for any help anyone can provide,

Conan Kelly



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

Default Re: Open File Dialog from DTS - 11-08-2005 , 04:47 PM






Whilst I cannot help with the method itself it is my opinion that using
DTS in this way is not the way it was intended. I do not see DTS as an
interactive application like this. If I was doing this type of thing I
would have an app that did the choosing of the text file before it
called my package. One of the reasons for this is that what is you have
a transaction running over the package and your dialog box comes up in
mid flow. Maybe you also decided to go get a coffee at the same time.
You will be locking people in the database whilst this happens.

Just my thoughts


Allan


"Conan Kelly" <CTBarbarin at msn dot com> wrote


Quote:
Hello all,

I would like to use the "Open File" dialog box from within the DTS
package to select the source text file to import. But it doesn't look
like the "GetOpenFilename" method is available to me in SQL Server's
VB script.

Is there another way to use the "Open File" dialog box from VB script?
Is there a way I can get the VB script in SQL Server to reference a
library that has the "GetOpenFilename" method in it?

Thanks for any help anyone can provide,

Conan Kelly


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

Default Re: Open File Dialog from DTS - 11-09-2005 , 03:28 AM



It is a bad idea for reason that Allan mentioned, but saying that I took the
API and wrapped it in a custom task, because I could! Be careful.

Open File Dialog Custom Task
(http://www.sqldts.com/default.aspx?226)


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

"Conan Kelly" <CTBarbarin at msn dot com> wrote

Quote:
Hello all,

I would like to use the "Open File" dialog box from within the DTS package
to select the source text file to import. But it doesn't look like the
"GetOpenFilename" method is available to me in SQL Server's VB script.

Is there another way to use the "Open File" dialog box from VB script? Is
there a way I can get the VB script in SQL Server to reference a library
that has the "GetOpenFilename" method in it?

Thanks for any help anyone can provide,

Conan Kelly




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.