Automating SQL Packager tutorial
chris sampson
Posts: 38
Hi there,
We are currently investigating this problem and will get back to you as soon as possible.
We are currently investigating this problem and will get back to you as soon as possible.
Chris Sampson
Support Engineer
Red Gate Software
Support Engineer
Red Gate Software
This discussion has been closed.
Comments
There is a bit of a bad assumption in the automating SQL Packager tutorial code that you are not going to package a table which contains a BLOB column such as text or image. Since Packager requires a primary key on the table in order to properly index the BLOB data, setting the primary key fields in the TableComparisonSetting to NULL will not work with tables containing binary data. What I think is a good idea, then, is to add a conditional statement to the code to allow for this because you want to use a primary key if it's available but you want to avoid another NULL-reference exception if it isn't.
Please change this bit of code in the Packager example:
To this: