Viewing 5 posts - 1 through 5 (of 5 total)
Jeff, I have no control over the file that is sent, comes from an external source. Every month its a different column (or columns) not included. Also, the same column...
July 22, 2020 at 7:59 am
Thank you, that is a lot cleaner.
July 22, 2020 at 1:48 am
This is a simplified example of what I'm going to use as the solution:
IF OBJECT_ID('tempdb..#Test2') IS NOT NULL DROP TABLE #Test2
CREATE TABLE #Test2
(A int, B int, C...
July 22, 2020 at 1:33 am
Yes, I was also thinking from a maintenance perspective dynamic would not be the best solution. Today its 3 missing, it might be 5 in the future so adding the...
July 22, 2020 at 1:16 am
I have one idea I haven't tried yet (think it will work):
(1) import data into temp file
(2) use alter database to add the missing fields if they do not exist
I'd...
July 22, 2020 at 12:38 am
Viewing 5 posts - 1 through 5 (of 5 total)