PAC 1 - Package may fail using /quiet switch

Brian DonahueBrian Donahue Posts: 6,590 New member
edited March 26, 2006 6:46AM in Knowledge Base
  • 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
packageExecutor.Execute(); //Run

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


Sign In or Register to comment.