J
Jim Heavey
I am attempting to connect to an Oracle table.
When I record a macro to connect, it generates the following code.
With ActiveSheet.QueryTables.Add(Connection:=Array(Array( _
"ODBC;DSN=PRG_OPS;UID=YYYYYY;PWD=XXXXXXXX;DBQ=EDSSP.WORLD;DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=" _
)
I converted this to:
strCnn = "Provider=OraOLEDB.Oracle.1;Password=XXXXXXXXX;User ID=YYYYYYY;Data
Server=EDSSP.WORLD;Persist Security Info=True"
I am guessing that perhaps the "OraOLEDB.Oracle.1". What and how do I know
what to place in this field.
I am getting the following error:
-2147467259: ORA-12560: TNSrotocol adapter error
When I record a macro to connect, it generates the following code.
With ActiveSheet.QueryTables.Add(Connection:=Array(Array( _
"ODBC;DSN=PRG_OPS;UID=YYYYYY;PWD=XXXXXXXX;DBQ=EDSSP.WORLD;DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=" _
)
I converted this to:
strCnn = "Provider=OraOLEDB.Oracle.1;Password=XXXXXXXXX;User ID=YYYYYYY;Data
Server=EDSSP.WORLD;Persist Security Info=True"
I am guessing that perhaps the "OraOLEDB.Oracle.1". What and how do I know
what to place in this field.
I am getting the following error:
-2147467259: ORA-12560: TNSrotocol adapter error