dbTalk Databases Forums  

Connection in ActiveX Script

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


Discuss Connection in ActiveX Script in the microsoft.public.sqlserver.dts forum.



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

Default Connection in ActiveX Script - 10-13-2004 , 06:03 PM






I have an ActiveX Script Task that is the last step in a Package which
inserts an "audit log" record in a table. But the ConnectionString to insert
the log record is a fixed string. I would rather use the global variable to
set the connectionString, or re-use an existing connection. Does anyone know
how to do this?

Thanks,

Michael

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

Default Re: Connection in ActiveX Script - 10-14-2004 , 02:01 PM






Why bother?

Have an ExecuteSQL task that points to the correct place (Configurable) and
you can then insert the statement through a Global Variable as well.

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)

Connections
(http://www.sqldts.com/default.aspx?101)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"Snake" <Snake (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have an ActiveX Script Task that is the last step in a Package which
inserts an "audit log" record in a table. But the ConnectionString to
insert
the log record is a fixed string. I would rather use the global variable
to
set the connectionString, or re-use an existing connection. Does anyone
know
how to do this?

Thanks,

Michael



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.