it is possible to control the contents of the Provider and Connection tabs (including the 'Allow Saving Password' checkbox) by storing a pre-configured connection string in the connection object prior to calling the udl as follows...
What I wanted to do was set ONLY the "Persist Security Info" thing, but that works ONLY if you include at least one of the 'security' parameters - User ID or Password - which then get put into the Wizard's UID/PW controls, where I wanted blanks.
It also gets funny if you use the 'test connection' thing if you supply a slightly different provider name... eg I supplied "ORAOLEDB.Oracle", which works just fine, except when you do the "wizard selection" it uses "ORAOLEDB.Oracle.1" and then on return it tells you the connection failed because the specified provider was not the same as that which is already in use. (No problem if you don't do the connection test, or if you don't supply ANY connection string).
In any event, I think this will help me deal with my situtation snce I only have to support Oracle 8i or 10g. The 8i Client uses the MS provider (MSDAORA), but the 10g client installs the ORAOLEDB.ORACLE provider. MSDAORA is not officially supported beyond 8i, but it works OK with 10g anyway.
The fun part comes when the user upgrades the Oracle database on the server (8i==>10g) , but does not install a new client on all the user terminals. Everything still works, but it shoots my 'selection criteria' all to hell.
Oh, well, I can make this work with this.
MCM
(Kind of a fun thread. huh?)
Leave a comment: