dbTalk Databases Forums  

Create ActiveX Confirm Message Box in DTS

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


Discuss Create ActiveX Confirm Message Box in DTS in the microsoft.public.sqlserver.dts forum.



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

Default Create ActiveX Confirm Message Box in DTS - 10-03-2003 , 03:11 PM






Hi...

I'm writing a DTS that before running, it's crucial that one variable
is changed. To remind me (or whoever) to change this variable, I'd
like to write a ActiveX script to simply say something like "Did you
change the Month Code Variable" [Yes] [No]. If they click Yes, it
contiues and runs the script.. but if No, it fails and ends the DTS.

I know little to nothing about ActiveX, so I'm not sure how to do
this. I already have a starting SQL Task that begins my DTS, so I'm
hoping to place this Confirmation ActiveX script before that and only
on Success it will continue to the SQL Task.

Is this possible? I assume so, but I can't find any documentation on
how to do it.

Thanks,

Alex.

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

Default Re: Create ActiveX Confirm Message Box in DTS - 10-03-2003 , 04:07 PM






At the start of you package you do this in an Active Script task


Function Main()



if MsgBox( "Did you change the Vals", vbYesNo ,"Change" ) = vbYes then
'Continue
msgbox "Continue"
else
'Stop
msgbox "Stop"
end if

Main = DTSTaskExecResult_Success
End Function


Instead of saying "Continue" or "Stop" you add workflow that either exits
the package or carries on

Multiple Paths in Workflow
(http://www.sqldts.com/default.aspx?218)


(step 4)
Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)


Make sure this package is not scheduled though.


--
--

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

"Alex" <alex (AT) totallynerd (DOT) com> wrote

Quote:
Hi...

I'm writing a DTS that before running, it's crucial that one variable
is changed. To remind me (or whoever) to change this variable, I'd
like to write a ActiveX script to simply say something like "Did you
change the Month Code Variable" [Yes] [No]. If they click Yes, it
contiues and runs the script.. but if No, it fails and ends the DTS.

I know little to nothing about ActiveX, so I'm not sure how to do
this. I already have a starting SQL Task that begins my DTS, so I'm
hoping to place this Confirmation ActiveX script before that and only
on Success it will continue to the SQL Task.

Is this possible? I assume so, but I can't find any documentation on
how to do it.

Thanks,

Alex.



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.