Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to display a pause and warning message in SSIS


How to display a pause and warning message in SSIS

Author
Message
tripower
tripower
Valued Member
Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)

Group: General Forum Members
Points: 61 Visits: 123
I wanted to create a pause with a warning message at the beginning of certain packages due to the potential impact on the database. How would I do this with SSIS?
Baskar B.V
Baskar B.V
SSC-Enthusiastic
SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)

Group: General Forum Members
Points: 151 Visits: 341
tripower (8/13/2010)
I wanted to create a pause with a warning message at the beginning of certain packages due to the potential impact on the database. How would I do this with SSIS?


You can do that using Msgbox inside activex script task.

BASKAR BV
http://geekswithblogs.net/baskibv/Default.aspx
In life, as in football, you won’t go far unless you know where the goalposts are.

John Mitchell-245523
John Mitchell-245523
SSCertifiable
SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)

Group: General Forum Members
Points: 7472 Visits: 15142
A warning message? I don't think SSIS is designed to do that: it runs as a service and doesn't depend on anybody being logged on interactively. If you still wanted to do it, I suppose you can write a VB script (other languages are available) that will pop up a message and wait for aknowledgement from a user. Your only difficulty now is knowing whether there's a user logged on to see it.

John
tripower
tripower
Valued Member
Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)

Group: General Forum Members
Points: 61 Visits: 123
OK, I did that with a VB scrip message box that has an OK and Cancel button but how to I cancel execution of the package if the user clicks cancel.
Baskar B.V
Baskar B.V
SSC-Enthusiastic
SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)

Group: General Forum Members
Points: 151 Visits: 341
tripower (8/13/2010)
OK, I did that with a VB scrip message box that has an OK and Cancel button but how to I cancel execution of the package if the user clicks cancel.


You are mostly using SSIS like a front-end application though SSIS is designed for ETL and it should be used without any user intervention... How you are planning to execute this in production? Because once you schedule this job these warning message only appear in the system where you scheduled it.

Instead if the graph is only for one user and who is going to run this from his machine on demand then it should be fine.

Anyways, u can achieve that using something like below code...

Dim x As MsgBoxResult

x = MsgBox("test message", MsgBoxStyle.YesNo)

If x = MsgBoxResult.Yes Then
Dts.TaskResult = Dts.Results.Success
Else
Dts.TaskResult = Dts.Results.Failure
End If

BASKAR BV
http://geekswithblogs.net/baskibv/Default.aspx
In life, as in football, you won’t go far unless you know where the goalposts are.

Raunak Jhawar
Raunak Jhawar
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1095 Visits: 1944
Baskar B.V (8/13/2010)
tripower (8/13/2010)
I wanted to create a pause with a warning message at the beginning of certain packages due to the potential impact on the database. How would I do this with SSIS?


You can do that using Msgbox inside activex script task.



Hello Baskar,

I'm sure that we all BI-developers are of the believe that ETL processess should not include much of UserInteraction as they are a set of automated process.

In this case, Well my approach would be to create Event Handlers as and when necessary so that the package continues to run and log the necessary details as and when the need arises rather than using a messageBox.

I am keen to know if i'm mistaken.:-):-)

Regards/Raunak
Now a member of Linkedin

Please visit the all new Performance Point Forum
Please visit the all new Data Mining and Business Analytics Forum
nakvijay
nakvijay
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 81
Hi,

I wanted to know, if we can obtain/receive (through variable) the warning message, and log in a custom table.

I have created a sql task in onwarning handler, but i dont know, how to obtain the warning.

Could you help me out.

Regards,
Vijay
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16467 Visits: 13207
nakvijay (5/30/2011)
Hi,

I wanted to know, if we can obtain/receive (through variable) the warning message, and log in a custom table.

I have created a sql task in onwarning handler, but i dont know, how to obtain the warning.

Could you help me out.

Regards,
Vijay


How is this related to the original topic? Please start-up a new thread.



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search