Hi,
Whenever I read data from excel sheet into the datatable with ReadRange actiivity, I get datatype of “object” for all the columns in Datatable. I can use the “preserve format” in Readrange activity but it is inefficient for very large data.
Now, I have different datatype of columns in my Sql table such as DateTime, string, Int32 etc. If I insert the datatable directly into Sql table then I will get the error of mismatch of columns’ datatypes.
I know one workaround i.e. to create a new datatable with the desired datatypes and then copy data from old datatable to new one row by row and then finally insert into the sql table.
My question is: Is there any other efficient way to insert data from datatable to sql table? Any help in this regard?