dbTalk Databases Forums  

Import DTS-Package (as VB-Script) without Visual-Studio 6?

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


Discuss Import DTS-Package (as VB-Script) without Visual-Studio 6? in the microsoft.public.sqlserver.dts forum.



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

Default Import DTS-Package (as VB-Script) without Visual-Studio 6? - 07-07-2006 , 06:31 AM






Hi,

we exports a DTS-Package as a VB-Script to change the some servernames
with search and replace operations. Now we should import the modified
package (VB-Script) to the SQL-Server, but the SQL-servers dont't have
any Visual-Studio-Software.

It's possible to import a DTS-Package as a VB-Script with tools like
SQL-Enterprisemanager?

Thanks for answer

Hans

Reply With Quote
  #2  
Old   
Davide Rossetti
 
Posts: n/a

Default Re: Import DTS-Package (as VB-Script) without Visual-Studio 6? - 07-07-2006 , 07:12 AM






Hello Hans,

Quote:
Hi,

we exports a DTS-Package as a VB-Script to change the some servernames
with search and replace operations. Now we should import the modified
package (VB-Script) to the SQL-Server, but the SQL-servers dont't have
any Visual-Studio-Software.

It's possible to import a DTS-Package as a VB-Script with tools like
SQL-Enterprisemanager?

Thanks for answer

Hans

I do not know if does exist a tool to automate this matter;anyway if you
saved your DTS as a *.bas file at the end of the Private Sub Main()
you should find the statement 'goPackage.Execute'(you sholud comment this)
with an upper commented statement like this 'goPackage.SaveToSQLServer "(local)",
"sa", "" '
The commented one is the statement to save your modified package on SQL Server
so you shold uncomment it giving it the right params, compile the .bas and
run.

For ref. look at this:
http://doc.ddart.net/mssql/sql2000/h...ethjz_25k4.htm




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

Default Re: Import DTS-Package (as VB-Script) without Visual-Studio 6? - 07-08-2006 , 04:41 PM



Hello,

I agree with Davide's recommendation for this but I would not have taken
the package to .bas in the first place. It seems to me to be process heavy
doing it like this. What you need to do ideally is to use the Dynamic properties
task to set up properties of objects within your package.

Allan




Quote:
Hello Hans,

Hi,

we exports a DTS-Package as a VB-Script to change the some
servernames with search and replace operations. Now we should import
the modified package (VB-Script) to the SQL-Server, but the
SQL-servers dont't have any Visual-Studio-Software.

It's possible to import a DTS-Package as a VB-Script with tools like
SQL-Enterprisemanager?

Thanks for answer

Hans

I do not know if does exist a tool to automate this matter;anyway if
you
saved your DTS as a *.bas file at the end of the Private Sub Main()
you should find the statement 'goPackage.Execute'(you sholud comment
this)
with an upper commented statement like this 'goPackage.SaveToSQLServer
"(local)",
"sa", "" '
The commented one is the statement to save your modified package on
SQL Server
so you shold uncomment it giving it the right params, compile the .bas
and
run.
For ref. look at this:
http://doc.ddart.net/mssql/sql2000/h...ethjz_25k4.htm



Reply With Quote
  #4  
Old   
Hans Glasbrenner
 
Posts: n/a

Default Re: Import DTS-Package (as VB-Script) without Visual-Studio 6? - 07-09-2006 , 03:08 AM



Hi Davide,

thanks for answer i will test next week to pratice your usefull tip.

Best Regards

Hans

Reply With Quote
  #5  
Old   
Hans Glasbrenner
 
Posts: n/a

Default Re: Import DTS-Package (as VB-Script) without Visual-Studio 6? - 07-09-2006 , 03:12 AM



Hi Allan,

thanks for answer.

Can you show me a example to modify a DTS-Package with a another
DTS-Package. My problem is only the change the servernames from the
original to the destination. The servername is in some statements who
can't use global variables (update-statements).

Best regards

Hans

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

Default Re: Import DTS-Package (as VB-Script) without Visual-Studio 6? - 07-09-2006 , 03:20 AM



Hello Hans,

We arote this article which may help

Execute a package from a package
(http://www.sqldts.com/default.aspx?215)


Allan



Quote:
Hi Allan,

thanks for answer.

Can you show me a example to modify a DTS-Package with a another
DTS-Package. My problem is only the change the servernames from the
original to the destination. The servername is in some statements who
can't use global variables (update-statements).

Best regards

Hans




Reply With Quote
  #7  
Old   
Hans Glasbrenner
 
Posts: n/a

Default Re: Import DTS-Package (as VB-Script) without Visual-Studio 6? - 07-10-2006 , 12:46 AM



Hi Davide,

now i'm try to compile my DTS-Package with Visual-Studio 6.

At the first line with a DTS-Oject (DTS.Package) stops with a
"undefined error".

I need a methode to make public the DTS-Objects for the VB-Compiler.

Can you show me some technics to compile a DTS-VB-Script with VS 6 ?

Thanks for help

Hans

Reply With Quote
  #8  
Old   
Davide
 
Posts: n/a

Default Re: Import DTS-Package (as VB-Script) without Visual-Studio 6? - 07-10-2006 , 07:00 AM



Hello Hans,

Quote:
Hi Davide,

now i'm try to compile my DTS-Package with Visual-Studio 6.

At the first line with a DTS-Oject (DTS.Package) stops with a
"undefined error".

I need a methode to make public the DTS-Objects for the VB-Compiler.

Can you show me some technics to compile a DTS-VB-Script with VS 6 ?

Thanks for help

Hans

When you open the .bas file,on the menu select Project-->References and
check 'Microsoft DTSPackage Object library'.
Bye




Reply With Quote
  #9  
Old   
Hans Glasbrenner
 
Posts: n/a

Default Re: Import DTS-Package (as VB-Script) without Visual-Studio 6? - 07-10-2006 , 09:49 AM



Hello Davide,

the Tip was right. Now can i store the DTS-Script to a SQL-Server.

A little bit more and it is perfect. I can run the script in the
Visual-Studio but i need a EXE to distribute to another Server. In the
VS - Menu i can't find "Build all" or compile to Exe. The project-type
is standard exe. The shortcut ctrl + F5 runs the script without error,
but it save no EXE-File.

Thanks for help

Hans

P.S.: Your name sounds like italian. Congratulation to win the
scoccer-wc.

Reply With Quote
  #10  
Old   
Davide
 
Posts: n/a

Default Re: Import DTS-Package (as VB-Script) without Visual-Studio 6? - 07-10-2006 , 11:55 AM



Hello Hans,

Quote:
Hello Davide,

the Tip was right. Now can i store the DTS-Script to a SQL-Server.

A little bit more and it is perfect. I can run the script in the
Visual-Studio but i need a EXE to distribute to another Server. In the
VS - Menu i can't find "Build all" or compile to Exe. The project-type
is standard exe. The shortcut ctrl + F5 runs the script without error,
but it save no EXE-File.

Thanks for help

Hans

P.S.: Your name sounds like italian. Congratulation to win the
scoccer-wc.

Well, It sounds good !!
Anyway, can' t you find ' File --> Make <nameofyourproject>.exe ?

Bye




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.