I have a project that creates a table from a DataTable to a SQL table via SMO.
The datatypes of the columns do not convert currently from System.Type to SMO.DataType. I can do this via a Case statement but I was hoping for a cleaner solution. Maybe something involving TypeDescriptor.GetConverter(targetDataType).
This works between System.types and SQL.DataTypes but I can't get it to convert to SMO.DataTypes.
Any suggestions or tips?
TIA