Minor Issue: No "successful" message upon package completion
rdugre
Posts: 13
I have generated a C# project and noticed the following:
The line "if ( packageExecutor.Quiet )" should be "if ( ! packageExecutor.Quiet )" (notice the not). Otherwise, I believe it does the opposite of what is intended. Easy to correct manually, but I just though I'd let you know.
-- Rob --
//Show success message if ( packageExecutor.Quiet ) { PackageUtils.ShowMsg(new PackageExceptionInfo("Package executed successfully.")); } else { Console.WriteLine( "Package executed successfully." ); }
The line "if ( packageExecutor.Quiet )" should be "if ( ! packageExecutor.Quiet )" (notice the not). Otherwise, I believe it does the opposite of what is intended. Easy to correct manually, but I just though I'd let you know.
-- Rob --
Comments
I'll have a look there, but I think that this is probably correct because when we run in quiet mode we don't want the message written to the console. PackageUtils.ShowMsg will detect whether or not the package is supposed to run with a UI and if not, it will leave an event log entry.
-- Rob --
In the previous version of SQL Package, the successful message box appeared. Since it was in the previous version and since it appears within the code, I would expect its in this version.
-- Rob --
OK, I see now. I will raise this issue to the development team. Thanks a lot for pointing it out to us.