I have a #temp
table containing all the data that needs to be inserted into a table named Customer
.
The column names of the two tables are exactly the same, but the data types are different. So I need to cast from one type to another before inserting the data into the Customer
table.
The solution has to be implemented for a dynamic condition. i.e, I don't know the column name or data type.
Best Answer
Add the insert part and it should do the trick!