dbTalk Databases Forums  

run a dts with a parameter

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


Discuss run a dts with a parameter in the microsoft.public.sqlserver.dts forum.



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

Default run a dts with a parameter - 08-29-2005 , 07:19 AM







I've a dts that needs an explicitly defined argument.
I'm looking for both some kind of interactive 'input box' that lets the user
type the needed argument and some kind of launch parameter similar to the
ones that EXE file get.

I'm not interested in ini-files parameters.
Thanks in advance

Agostino



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

Default Re: run a dts with a parameter - 08-29-2005 , 08:10 AM






OK whilst you can get an InputBox through DTS I would probably not do it.
The reason is if you cause a lock or block then it will be waiting until you
press a button. I would probably have the application calling DTS pass in
the values after asking the user for the value outside of the package. You
can then either call the package through the object model or you could call
it on the cmdline passing a value to the /A switch





"Agostino" <agostino_sclauzero (AT) hotmail (DOT) com> wrote

Quote:
I've a dts that needs an explicitly defined argument.
I'm looking for both some kind of interactive 'input box' that lets the
user
type the needed argument and some kind of launch parameter similar to the
ones that EXE file get.

I'm not interested in ini-files parameters.
Thanks in advance

Agostino





Reply With Quote
  #3  
Old   
Agostino
 
Posts: n/a

Default Re: run a dts with a parameter - 08-29-2005 , 09:58 AM



Ok, i'll go the object model way through dts com object 'package'.
By the way, is there a way to obtain the list of packages published on a
certain SQL Server?
Thank you for your help
Agostino

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> ha scritto nel messaggio
news:#Eb9AsJrFHA.2064 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Quote:
OK whilst you can get an InputBox through DTS I would probably not do it.
The reason is if you cause a lock or block then it will be waiting until
you
press a button. I would probably have the application calling DTS pass in
the values after asking the user for the value outside of the package.
You
can then either call the package through the object model or you could
call
it on the cmdline passing a value to the /A switch





"Agostino" <agostino_sclauzero (AT) hotmail (DOT) com> wrote in message
news:OyZEZPJrFHA.3060 (AT) TK2MSFTNGP09 (DOT) phx.gbl...

I've a dts that needs an explicitly defined argument.
I'm looking for both some kind of interactive 'input box' that lets the
user
type the needed argument and some kind of launch parameter similar to
the
ones that EXE file get.

I'm not interested in ini-files parameters.
Thanks in advance

Agostino







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

Default Re: run a dts with a parameter - 08-29-2005 , 10:07 AM



You can look directly in sysdtspackages (msdb) or you can look at somthing
like this

Dim oApplication ' As DTS.Application
Dim oPackageSQLServer ' As DTS.PackageSQLServer
Dim oPackageInfos ' As DTS.PackageInfos
Dim oPackageInfo ' As DTS.PackageInfo


Set oApplication = CreateObject("DTS.Application"*)
Set oPackageSQLServer = oApplication.GetPackageSQLServ*er("(local)\dev", "",
"", 256)


Set oPackageInfos = oPackageSQLServer.EnumPackageI*nfos("", False, "")


Set oPackageInfo = oPackageInfos.Next
Do Until oPackageInfos.EOF
Wscript.Echo(oPackageInfo.Name*)
Set oPackageInfo = oPackageInfos.Next
Loop


Set oApplication = Nothing






"Agostino" <agostino_sclauzero (AT) hotmail (DOT) com> wrote

Quote:
Ok, i'll go the object model way through dts com object 'package'.
By the way, is there a way to obtain the list of packages published on a
certain SQL Server?
Thank you for your help
Agostino

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> ha scritto nel messaggio
news:#Eb9AsJrFHA.2064 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
OK whilst you can get an InputBox through DTS I would probably not do it.
The reason is if you cause a lock or block then it will be waiting until
you
press a button. I would probably have the application calling DTS pass
in
the values after asking the user for the value outside of the package.
You
can then either call the package through the object model or you could
call
it on the cmdline passing a value to the /A switch





"Agostino" <agostino_sclauzero (AT) hotmail (DOT) com> wrote in message
news:OyZEZPJrFHA.3060 (AT) TK2MSFTNGP09 (DOT) phx.gbl...

I've a dts that needs an explicitly defined argument.
I'm looking for both some kind of interactive 'input box' that lets the
user
type the needed argument and some kind of launch parameter similar to
the
ones that EXE file get.

I'm not interested in ini-files parameters.
Thanks in advance

Agostino









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.