We have some input data that sometimes appears with   characters on the end.
The data comes in from the source system as varchar() and our attempts to cast a
How is the table being populated? While it is possible to scrub this in sql a better approach would be to change the column type to int and scrub the data before it's loaded into the database (SSIS). Is this an option?