I have source tables whose all columns are varchar and some of them have empty spaces like '' (not NULL). I am trying to load this table data into target table whose datatype are not varchar and hence while inserting the records having '' ,getting error as "Numeric values '' not found".
Could you please suggest how can I find and convert all columns which have '' to NULL before I load into target.
I am looking for this process to be dynamic as I have several other tables on which I have to perform similar activity.
I have tried following this URL for snowflake, but not able to achieve. How to convert empty spaces into null values, using SQL Server?
Appreciate your help.
Thank you.