Hello,
I am trying to load data from an OLEDB datasource into a dataset and then saving that data into a SQL table (in VB.NET code)
So I am certain that the OLEDB datasource pulls out the correct data since I am assigning the dataset table as the datasource to a datagridview.
I then create a SQLDataAdapter with an Insert Command object and pass through the dataset table loaded from the OLEDB datasource to the SQLDataAdapter.Update method. The table structure for the SQL table is the same as the OLEDB table so I am expecting the table to be populated with the data but no data is saved. I don't get any error messages returned either.
Do you know what I might be doing wrong or is there an alternative way of doing the same thing? (This needs to be called from code rather than running an SSIS package)
I am trying to load data from an OLEDB datasource into a dataset and then saving that data into a SQL table (in VB.NET code)
So I am certain that the OLEDB datasource pulls out the correct data since I am assigning the dataset table as the datasource to a datagridview.
I then create a SQLDataAdapter with an Insert Command object and pass through the dataset table loaded from the OLEDB datasource to the SQLDataAdapter.Update method. The table structure for the SQL table is the same as the OLEDB table so I am expecting the table to be populated with the data but no data is saved. I don't get any error messages returned either.
Do you know what I might be doing wrong or is there an alternative way of doing the same thing? (This needs to be called from code rather than running an SSIS package)