I was wondering if someone could explain the difference between an ADODB.Connection
and creating an Oracle session through "OracleInProcServer.XOraSession". Is one better than the other in certain cases?
From what I have read in ADODB cnn.Open "Pubs", "MyUserName", "MyPassword"
and OraSession you put in openDatabase(database_name, database_version, database_displayname, database_size)
.
How do the connections differ?
Also with the ADODB connection you can open a recordset and save with a rs.Open
and a rs.GetRows
. Is there a way to save the values of the query to then display in the Excel with the OraSession connection?
Dim cnn As ADODB.Connection
Dim rs As ADODB.Recordset
verses
Set OraSession = CreateObject("OracleInProcServer.XOraSession")
Set OraDatabase = OraSession.DbOpenDatabase("", "", 0&)
Thanks! Maggie