Hello I have a flat .dat file as Source and am trying to import it into a SQL Server 2019 Database as a Table.
This .dat file FIELDTERMINATOR = '|' Vertical Pipe...and I've been trying different variations using bcp and BULK INSERT with FORMAT FILE (and tweaking things) but still unsuccessful.
Looks like my issue has something to do with the Final Column in the .dat file with LF (Line Feed?) as I've provided image shot here in my question.
The black bar (redacted column name) in the image is the Source .dat file desired "Final_Column_Name" (and similarly the other end Target destination Table).
But as you notice the .dat file also has an extra empty blank Column after this "Final_Column_Name"...am trying to skip/not include during import of this blank extra column or whatever it takes to get the import to succeed and then do clean up afterwards).
(1st line item is actual Column names header and the 2nd line and on wards below are the rows to be imported and notice no actual data in row 2 but still need to include in the overall import since the other columns in this row 2 does have data)
Like I mentioned something to do related to the final 2 columns at the end along with the row terminator in the format file...any thoughts on how I can get it to import like I mentioned at the very least and then clean up afterwards or straight up fix would be better if possible.
Thanks in advance.