dbTalk Databases Forums  

execute DTS Package from a VB script

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


Discuss execute DTS Package from a VB script in the microsoft.public.sqlserver.dts forum.



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

Default execute DTS Package from a VB script - 06-22-2004 , 02:34 AM






Hello!

I'm trying to execute my VB Package from a VB script. My code is :

dtsPackage.LoadFromSQLServer _
ServerName:=gs_ServerName, _
ServerUserName:=gs_UserName, _
ServerPassword:=gs_Password, _
PackageName:=gs_PackageName

But I cannot find what is the gs_UserName and the gs_Password. Where
can I find it ? I have search in the properties of the server but did
not find.

Thanks for your help

Al

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

Default Re: execute DTS Package from a VB script - 06-22-2004 , 03:34 AM






The UserName and Password are your logon credentials to the server you
specified in ServerName

have a look here

Execute a package from Visual Basic (VB)
(http://www.sqldts.com/default.aspx?208,1)

--

----------------------------

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


"Al" <alhoffmann (AT) free (DOT) fr> wrote

Quote:
Hello!

I'm trying to execute my VB Package from a VB script. My code is :

dtsPackage.LoadFromSQLServer _
ServerName:=gs_ServerName, _
ServerUserName:=gs_UserName, _
ServerPassword:=gs_Password, _
PackageName:=gs_PackageName

But I cannot find what is the gs_UserName and the gs_Password. Where
can I find it ? I have search in the properties of the server but did
not find.

Thanks for your help

Al



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.