I'm currently creating an integration flat file from SQL 2008.
In the spec file.
Fields must be delimited with a ;
text strings must be qualified with " I.E "South Africa" and a number must not have a qualifier.
I.E
Country;Product;Sales;Country_Code
"South Africa";"Camera";1234.76;"ZA"
But when you are not able to supply string value the field must be left blank.
I.E "South Africa";;1234.76;"ZA"
So i created a query in a view, so that i can then use a SQL integration services to dump the data to a file,
and i am able to select ; as the delimiter and tell it to use "" for text and nothing for numbers,
but!
It will dump the data as "South Africa";"";1234.76;"ZA" to my knowledge ;""; is the "right" way of doing it, but anyway cant argue with them.
I would hate to run a tool over that that finds and replaces ;""; with ;; that would be very retarded or to create a SQL stored Proc that will dump the whole file into a temp table into one field and as it dumps check for blank fields then add ;; instead of ;"";
Any Help ?
In the spec file.
Fields must be delimited with a ;
text strings must be qualified with " I.E "South Africa" and a number must not have a qualifier.
I.E
Country;Product;Sales;Country_Code
"South Africa";"Camera";1234.76;"ZA"
But when you are not able to supply string value the field must be left blank.
I.E "South Africa";;1234.76;"ZA"
So i created a query in a view, so that i can then use a SQL integration services to dump the data to a file,
and i am able to select ; as the delimiter and tell it to use "" for text and nothing for numbers,
but!
It will dump the data as "South Africa";"";1234.76;"ZA" to my knowledge ;""; is the "right" way of doing it, but anyway cant argue with them.
I would hate to run a tool over that that finds and replaces ;""; with ;; that would be very retarded or to create a SQL stored Proc that will dump the whole file into a temp table into one field and as it dumps check for blank fields then add ;; instead of ;"";
Any Help ?
Last edited: