Showing messages while executing packages

  • Hi,

    I am executing a package using command line (dtexec). I want to display messages on the console while the package execute. Which component do I use?

    thanks.

  • You can use a script task - i.e.

    Imports System

    Imports System.Data

    Imports System.Math

    Imports Microsoft.SqlServer.Dts.Runtime

    Public Class ScriptMain

    System.Windows.Forms.MessageBox.Show("SOME MESSAGE HERE")

    System.Windows.Forms.MessageBox.Show(Dts.Variables("YourVariableHere").Value.ToString)

    Dts.TaskResult = Dts.Results.Success

    End Sub

    End Class

  • Message Box and command line ?

    Anyways i found an answer in a different forum : "sqlcmd"

  • message box = assuming of course your using it for debugging purposes. Not really sure why else you would need it 🙂

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply