How can we help you today? How can we help you today?

PAC 1 - Package may fail using /quiet switch

  • Date: 21 Sep 2004
  • Versions affected: 1.0
  • Operating System versions affected: Windows 2000 (RTM-SP4)
When running a .net executable SQL Packager package from the command line, the executable may fail with this exception message:
Unable to find entry point named AttachConsole in Kernel32.dll

This happens on Windows 2000 systems when the package is run from the command line using the /quiet switch. Possible workarounds are to not use the quiet switch and let the progress dialog display on-screen or opening the SQL Packager code template project and commenting the following code from PackageMain.cs:
if(packageExecutor.Quiet) //Quiet mode
{
/*PackageUtils.AttachConsole();*/
packageExecutor.Execute(); //Run
}

Note that commenting the code will suppress messages that would normaly be written to the console.
Brian Donahue
0

Comments

1 comment

  • Brian Donahue
    This issue has been fixed in SQL Packager version 4.
    Brian Donahue
    0

Add comment

Please sign in to leave a comment.