Do you know if there\'s a quick way in sql server (via transact-sql) that I could trim all the database string fields.
Updated the answer of dan to use all tables in the database. Just run the snippet and copy the result to execute.
SELECT 'UPDATE [' + TABLE_SCHEMA + '].[' + TABLE_NAME + '] SET [' + Column_Name + '] = ' + 'LTRIM(RTRIM([' + Column_Name + ']))'
FROM INFORMATION_SCHEMA.Columns c
WHERE Data_Type LIKE '%CHAR%'