oracle - Force Excel to exclude UID in connection string on ODBC Data Connection? -
i have several excel reports query oracle database via odbc share other users. each user has own user id , password saved in hkey_local_machine/software/odbc/odbc.ini
file make connecting these databases easier.
each time add query excel, excel automatically creates connection string can executed each time data needs refreshed in excel. connection string of form:
dsn=database;uid=username;dbq=dbase;dba=w;apa=t;exc=f;fen=t;qto=t;frc=10;fdl=10;lob=t;rst=t;btd=f;bnf=f;bam=ifallsuccessful;num=nls;dpm=f;mts=t;mdi=f;csr=f;fwc=f;fbs=64000;tlo=o;mld=0;oda=f;”
i want excel exclude uid=username
parameter these connection strings builds pull username registry instead. password value, not username.
if manually delete uid parameter, excel automatically fills in again each time query refreshed , fills in ever user last refreshed query:
i’ve tried filling in username uid=/
, seems tell excel pull username registry want first time it’s run; subsequently, oracle odbc driver connect login pops thinking username /
:
so seems oracle or doesn’t recognize parameter consistently.
basically i’m trying find out if there’s kind of wildcard or other parameter can use fill in uid field both excel , oracle odbc driver connect dialog know go , pull username registry; or if there’s way prevent excel adding uid parameter connection string each time connection refreshed.
if not, i’m thinking solution may build excel add-on automatically deletes uid field whenever excel tries add connection string.
the solution came split connection string array, clear element began "uid=", , put connection string together.
Comments
Post a Comment