Do I have to include every blessed column in my UPDATE even if we pass no data via that data column yet the 3rd party wants the entire file structure back?
For example...I matching on [MemberAccountNumber] and I will pass back all Member Address data touch points and deltas, [MemberStreet1], [MemberStreet2], [MemberCity], [MemberState], etc.. but also have to pass back [InsuranceRank], [InsuranceID], [InsuranceType]
that I never value on our end...sooooo they will never be delta'ed yet the 3rd party wants all their data columns back in a pipe-delimited file.
>> Do I have to include every blessed column in my UPDATE even if we pass no data via that data column yet the 3rd party wants the entire file structure back?
This is a good question and the answer is NO
You can see several options that you can use:
1. You can insert the relevant columns to a new table, and use the methods above (including the option of SSIS that TiborK
mentioned) in order to export the data from that table.
2. even if you export the data from a table that include all columns Using BCP fro example you can configure which columns will be added to the file. You can use an
XML format file for this (there is option to use non-XML format file, which personally I do not like).
3. If this is something that you do every time that you update the data, then you can have a replicate database in the 3rd party place, which replicate the table automatically. This way there is no need to create the file at all and he will see any action
in his database (replicates only the relevant tables in this case, and remember that he have all the data).
Again, like always... there are lot of options :-)
You should chose the one that fits your needs
* I can not recommend which one best for you, without the full business logic and fully understand your specific system and knowledge :-)