Arne,
You are right, snippet I found and try to use is using MySQL,
is it supposed to fail with SQL Server ?
> Why not just have the Java code write the CSV file - it is
> relative simple.
I am a Web developer, not a backend guy and have never done that.
Any code sample ?
Do you mean processing resultset and writing to a file manually, not
from SQL ?
Any T-SQL features to help with CSV?
Martin,
with quotes: it was a typo which is NOT in my code.
TIA,
Oleg.
Arne Vajhøj - 02 Mar 2010 18:56 GMT
> You are right, snippet I found and try to use is using MySQL,
> is it supposed to fail with SQL Server ?
Yes. SQLServer does not support that syntax.
>> Why not just have the Java code write the CSV file - it is
>> relative simple.
> I am a Web developer, not a backend guy and have never done that.
> Any code sample ?
> Do you mean processing resultset and writing to a file manually, not
> from SQL ?
Yes.
It is trivial to do a SELECT and for all rows write out
all columns separated by comma or whatever.
> Any T-SQL features to help with CSV?
DTS/SSIS can do it.
But I am not aware of any way to use that from Java.
Arne