SQL Packager Failing to Install an Assembly
Davy Mitchell
Posts: 19
I have a SQL script which updates that database. This is verified as working via SSMS.
If I package with SQL Packager and run I get the error
Upgrading Database: OPTAC_MyCompany
SQL Error: ALTER ASSEMBLY for assembly 'procInfringements' failed because assembly 'procInfringements' is malformed or not a pure .NET assembly.
Unverifiable PE Header/native stub.
:evil:
Thanks,
Davy Mitchell
If I package with SQL Packager and run I get the error
Upgrading Database: OPTAC_MyCompany
SQL Error: ALTER ASSEMBLY for assembly 'procInfringements' failed because assembly 'procInfringements' is malformed or not a pure .NET assembly.
Unverifiable PE Header/native stub.
:evil:
Thanks,
Davy Mitchell
Comments
I can't say for sure, but I think you've run into a bug in Packager that causes it to split scripts up in the middle of a query when you package scripts that are very large. We will be releasing an update to SQL Packager soon that will fix this problem.
This is impacting our current development. Can you be any more accurate than 'soon'? Sorry - I know it is difficult.
Regards,
Davy Mitchell
At this point, we are still trying to figure out the best way to fix it, so I don't have a date. I have found out that the magic number is around 250 -- batches that are 250 lines or less do not get broken up.
Our developers are planning to have a look at this issue in the next couple of weeks - hopefully we'll be able to get a fix out to you then.
Alice Easey
Project Manager
Red Gate Software
I think this may be fixed as part of Packager's enhancements to support large scripts -- I'll send you a link by Private Message.
Take care,
Davy
The large script fix appears to have solved the install issue (not tested the application much yet!).
Thanks for the help Is there a date set for the official final release?
Davy
There are no known issues that should prevent you using the private patch. The only disclaimer is that it hasn't undergone the full set of regression tests that our public releases undergo, so we would urge you to satisfy yourself that it works in your environment before using it in anger.
Kind regards,
David Atkinson
Red Gate Software
Product Manager
Redgate Software