cSQL := "SELECT * FROM [EFIS_UST_RELEASES]"
cConnStr := 'Provider=MSDAORA.1;Data Source=<TNSnameofServer>;User ID= .... ;Password- ..'
oCon := TOLEAuto():New('ADODB.Connection')
oCon:ConnectionString := cConnStr
TRY
oCon:Open()
CATCH
ShowAdoError(oCon)
Return .f.
END
// now open any number of recordsets using the above conn object
oRs := TOLEAuto():New('ADODB.RecordSet')
TRY
oRs:Open( <sql>, oCon, <other params > )
CATCH
ShowAdoError(oCon)
END
//-------------
STATIC FUNCTION ShowAdoError
LOCAL nAdoErrors := 0
LOCAL oAdoErr
nAdoErrors := oCon:Errors:Count()
IF nAdoErrors > 0
oAdoErr := oCon:Errors(nAdoErrors-1)
msginfo( oAdoErr:Description + CRLF + oAdoErr:Source )
ELSE
msginfo( 'Not Oracle Error' )
ENDIF
RETURN nil
I saw on the Oracle website the Quick 10 or 11i client download .. would this work ( do you think ) or do I need to just go back to the Oracle 10g disk and install the client files ??
was hoping to avoid any complicated setups
We currently have a 'very ugly' fat client Oracle forms 6i client .. over 1200 some .fmx forms that get depolyed to over 100 servers
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 74 guests