Re: Set up an ODBC connection Programmatically?



Ironically, I have a link to that 2nd KB article on my site, and it links to
the 1st article. <g>

What didn't work, though, trying to use a DSNless connection? Did you look
at Carl's site (http://www.carlprothman.net/Default.aspx?tabid=90) to get
the correct DSNless connection string for Oracle?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Annoyed Accountant" <AnnoyedAccountant@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:41062D79-87CE-4F54-8FF1-218AD1AE5E2B@xxxxxxxxxxxxxxxx
Thanks John. I'd looked at Doug's site, and found that it wouldn't work
for
me, however, I was not aware of the other two options, so I will try them
out. Thanks so much.

"John Spencer" wrote:



HOWTO: Create and Remove a DSN in Visual Basic
http://support.microsoft.com/?id=171146

HOWTO: Programmatically Create a DSN for SQL Server with VB
http://support.microsoft.com/?id=184608

It's also possible, though, to go DSN-less. Doug Steele has an example
at

http://www.accessmvp.com/djsteele/DSNLessLinks.html

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"Annoyed Accountant" <AnnoyedAccountant@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote
in
message news:1882E91D-5BE4-4A86-948C-E0C4DB34660F@xxxxxxxxxxxxxxxx
This is a long shot, I know, but I have an Access Database that I've
copied
out to our company's network drive, that has some tables linked via
ODBC
to
an Oracle Database. Other people can use this database, connect via
ODBC,
and
log into the Oracle Server with their own username and password,
provided
they have their system ODBC drive set up exactly as mine was when I
wrote
the
code. My question is, is it possible to set up an ODBC driver via VB or
VBA?
Many of the people using this database get confused when I try and give
them
instructions on how to go to
settings>controlpanel>administrativetools>datasources, etc. Can I write
code
to do these steps for them? Hope I posted this in the correct forum,
even
though it's not really an Access thing.





.



Relevant Pages

  • Re: Please Reply . Its Urgent.
    ... But i'm still not able to connect to Oracle Database either through ODBC ... Oracle in Ora9i and testing the connection) as follows:(recent error ...
    (microsoft.public.vb.database.ado)
  • Re: Problem with numeric blank fields
    ... Oracle 8i and ASA 8.03. ... I checked the ODBC log to find out what ODBC types they were bound to. ... which type of database? ... thing I can think off is to modify the SQL directly in MS Query (i.e. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Connectivity between Oracle and Progress Database
    ... Forse che io mi connetto ad oracle, faccio delle query ed il server stesso ... Una sorta di DBLink utilizzando gli ODBC? ... > am new to progress database. ...
    (comp.databases.oracle.server)
  • Re: ODBC JBDC Linked tables
    ... Access on a local Jet database is blazing fast. ... in return for other features of DB servers like Oracle and SQL Server. ... Mary Chipman wrote a book on how to optimize Access with SQL Server. ... I am using odbc drivers to link to the tables. ...
    (microsoft.public.access.externaldata)
  • Re: What so special about PostgreSQL and other RDBMS?
    ... That's exactly the link the licence agreement for the database points to when it ... comes to what wecan expect for paying support. ... > "Oracle may provide additional releases or versions of its programs ... If the requirements are volatile I'd do a long term contract detailing what ...
    (comp.lang.php)