Monday, July 7, 2014

How to call the variable value in message box in script task editor

Here is an example of calling the variable value in the message box to display

MessageBox.Show(Dts.Variables["User::MaxHistoryRecordDate"].Value.ToString());

OR

DateTime Date = (DateTime)Dts.Variables["User::MaxHistoryRecordDate"].Value;
MessageBox.Show(Date.ToString());

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.