Hi Nicholas
Sorry, I made some confusion. Below is what I want to achieve.
1. Extract data by fdx and copy to a datatable variable finalTable
2. Tried to set up a connection in Extensibility BR to our company sql database through SIC (SIC = "DWH_AWS1DNA01")
3. Save Data in finalTable to a Sql table dbo.OneStream_Table
I have successfully put data in the finalTable, but cannot save data to sql table. The codes I used are
Dim connectionString = "DWH_AWS1DNA01" --SIC connector name set up to pull out data from sql
Using dbConnExt As DbConnInfo = BRApi.Database.CreateExternalDbConnInfo(si, connectionString)
If Not finalTable Is Nothing Then
BRApi.Database.SaveCustomDataTable(si, connectionString, "Test_Datawarehouse.dbo.OneStream_Table", finalTable, True)
End If
End Using
The company sql database is on AWS cloud, and the same SIC can pull out data from sql to OS by a sql query.
Thanks