Hi S G,
​
In case you are willing to use the Wolfram Language as an intermediary, you can use the system modeling functionality,
​
https://reference.wolfram.com/language/tutorial/GettingStartedWithModelSimulationAndAnalysis.html
​
together with the functionality in the WL to access your database.
​
For example, here we use the data in the “demo” data source of the DatabaseExamples and create a model in System Modeler that does an interpolation. Then we extract the raw simulation results and use them to create a table in the database.
First, load the database functionality and their examples (see
https://reference.wolfram.com/language/DatabaseLink/tutorial/UsingTheExampleDatabases.html
for details, notice that this installs and restores DatabaseExamples)
In[]:=
Needs["DatabaseLink`"]​​<<DatabaseLink`DatabaseExamples`;​​DatabaseExamplesBuild[]
Open a connection to a named data source:
In[]:=
conn=OpenSQLConnection["demo"]
Out[]=
SQLConnection
Name: demo
ID: 3
Status: Open
Catalog: PUBLIC

Select data:
In[]:=
data=SQLExecute[conn,"SELECT VALUE FROM SAMPLETABLE1"]
Out[]=
{{5.6},{5.9},{7.2},{6.2},{6.}}
Create a model in System Modeler that interpolates over the data:
In[]:=
model=CreateDataSystemModel["MyData",Flatten[data]]
Out[]=
Simulate the model for 4 seconds:
In[]:=
sim=SystemModelSimulate[model,4]
Out[]=
SystemModelSimulationData
Model: MyData
Time: 0. to 4.

Plot the simulation results:
In[]:=
SystemModelPlot[sim,{"y[1]"}]
Out[]=
Extract the raw data from the simulation results:
In[]:=
simData=First[sim["RawData",{"y[1]"}]];​​simData//Short
Out[]//Short=
{{0.,5.6},{0.002,5.6006},{0.004,5.6012},1999,{3.998,6.0004},{4.,6.},{4.,6.}}
Create a table in conn:
In[]:=
SQLExecute[conn,"CREATE TABLE TEST (X DOUBLE, Y DOUBLE)"]
Out[]=
0
Insert the simulation data:
In[]:=
SQLExecute[conn,"INSERT INTO TEST (X, Y) VALUES (?, ?)",simData]//Short
Out[]//Short=
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1950,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
In[]:=
SQLExecute[conn,"SELECT * FROM TEST"]//Short
Out[]//Short=
{{0.,5.6},{0.002,5.6006},{0.004,5.6012},1999,{3.998,6.0004},{4.,6.},{4.,6.}}
Drop the table:
In[]:=
SQLExecute[conn,"DROP TABLE TEST"]
Out[]=
0
Close the connection:
In[]:=
CloseSQLConnection[conn]
Out[]=
{}