Instead of directly using a Copy activity, where you add a Derived Column transformation to trim the extra spaces from the columns. For each column that needs trimming, add a new derived column with the following expression:
trim(columnName)
For example, if you have a column named CustomerName
, you would use:
trim(CustomerName)
Add a Sink transformation and configure it to write to your Azure SQL Database.