I have a package that populates a table via several flatfile sources. I then need to run a queries against this table to generate multiple flatfiles. The table has a "recordType" column and each flatfile destination is simply all records with recordType = 0, or recordType = 1, etc...
When I setup my flatfile destination and choose a file destination, I then click on the OLEDB icon and then click on the flatfile icon, right click, click on Transform Data Task. I write my query as the source
select * from AYP_Container WHERE recordType = 0
I hit preview and see my records. I click on the Destination tab and a window pops up, I click on Populate from Source, and then Execute.. However, my Destination tab is blank where it should show the destination columns. If I click on "Define Columns", the Enterprise Manager crashes every time.
Even if I open the destination text file and manually put a CSV line of column headers in the file, I get the same result. The destination columns wont appear in the transform data task on either the Destination tab OR the Transformations tab and everytime I click on Define Columns, enterprise manager crashes and closes.
I'm getting very upset that I cant seem to simply export a table to a flat file. I even created a new package that did only that, oledb connection, flatfile destination, the source is just a single table (not a query), and I get the same thing, no destination columns and a crash.
I'd like to keep the solution all in the same package if at all possible.