Trying to connect to an ODBC source (Microsoft SQL).
I have successfully connected and confirmed the connID is a number:
Code: Select all
put revOpenDatabase("ODBC","ETMDataHub","ETMDataHub","x","x") into connID
if connID is null then
answer "Not connected"
else
answer "Connected"
end if
Code: Select all
put "select * from tbl_Import_ZA_CPI" into tQuery
put revDataFromQuery(tab,return,connID,tQuery) into tData
put tData into field 'Result'