Hi guys. please help me with example on followings.
- Read tabular data from excel file
- create table in sql database based on the excel file column names
- & finaly insert these data into sql data table
Thanks
Hi guys. please help me with example on followings.
Thanks
Hi @Kamal007,
Are you trying to insert the data to a sql database? If so you will first need to install the appropriate driver to connect to the database. Once that is done, you can follow the below steps.
Regards,
Neelima.
So I assume you have completed the first step already and you have a datatable.
Now you need to build an sql create table script based off of the column names / data types (unless they can all be nvarchar etc).
That needs to then be run using a non query activity.
Once you have created the table, you can then either loop through each row and use a non query to insert your data by writing a template sql and replacing your values in the string.
Or try insert datatable activity.