Hi,
I am trying to create a comma delimited text file using osql. My problem is that the data returned from the query often has 'commas' in the field data. So when the csv file is opened using something like Excel, it interprets the embedded commas in the data to be field separators which obviously causes a big problem with the data.
If I view the data in something like WordPad, it looks something like:
ID Item# ItemDesc
300, 500, Gloves,Large
and when opened in Excel, I get something like:
ID Item# ItemDesc
300 500 Gloves Large
^^new column created by comma
I think what needs to happen is that osql should place quotes around text data containing special characters(or qutoes around all text data for that matter). How can I accomplish this?
TIA
I am trying to create a comma delimited text file using osql. My problem is that the data returned from the query often has 'commas' in the field data. So when the csv file is opened using something like Excel, it interprets the embedded commas in the data to be field separators which obviously causes a big problem with the data.
If I view the data in something like WordPad, it looks something like:
ID Item# ItemDesc
300, 500, Gloves,Large
and when opened in Excel, I get something like:
ID Item# ItemDesc
300 500 Gloves Large
^^new column created by comma
I think what needs to happen is that osql should place quotes around text data containing special characters(or qutoes around all text data for that matter). How can I accomplish this?
TIA