How can i use a TRIM fonction in a SQL Query? : Hi i would like to use the trim fonction but don't realy know how it working.

I need to select items in a table and export it on a CSV file.

It's working fine but sometime when i have a specif data (here it's a string), the csv file write it with à CR LF and write at the line after.

I think that a problem with the data in the data base and that there "something" after my data in this specific field.

I have this query

string request = "SELECT * FROM " + tableName;

And i want to try this but i'm not sure.

string request = "SELECT * TRIM(TRAILING FROM ") + tableName;



Can you please help me ? 

sorry for my bad english

Thanks