Can anyone help with creating a BCP format file for the following file structure.
The first row contains headers enclosed in double quotes
All text values are enclosed in double quotes, but missing values are not.
Example of the file:
The first row contains headers enclosed in double quotes
All text values are enclosed in double quotes, but missing values are not.
Example of the file:
"ID","Name","Colour","LogDate"
41, "Orange", "Orange",2018-09-09 16:41:02.000
42, "Cherry, Banana","Red,Yellow",
43, "Apple",,2017-09-09 16:41:02.000What I have is this: but it doesn't handle missing values without doublequotes:
11.0
4
1 SQLCHAR 0 255 "\",\"" 1 ID SQL_Latin1_General_CP1_CI_AS
2 SQLCHAR 0 255 "\",\"" 2 Name SQL_Latin1_General_CP1_CI_AS
3 SQLCHAR 0 255 "\",\"" 3 Colour SQL_Latin1_General_CP1_CI_AS
4 SQLCHAR 0 255 "\r\n" 4 LogDate SQL_Latin1_General_CP1_CI_ASAny ideas please?