Re: Oracle connection string in .dqy file
- From: "jim.brown1@xxxxxxxxx" <jim.brown1@xxxxxxxxx>
- Date: 6 Dec 2006 10:53:41 -0800
Update, we just moved our server from 9i to 10g and the connection
string works fine. Must be something with 10g that it understands the
string?
jim.brown1@xxxxxxxxx wrote:
I'm attempting to embed Oracle connectivity in a MS Query file (*.dqy).
The purpose for creating a dqy file, is so that it can be distributed
to other users. My goal is to create the file, without having to rely
on the tnsnames.ora file. As an example, I'm able to create a *.dqy
file and have it function correctly, when the contents of the file, is:
XLODBC
1
DRIVER={Microsoft ODBC for
Oracle};UID=<username>;PWD=<password>;SERVER=<server name in the
tsnames.ora file>;
...
But this relies on a tsnmaes.ora file.
Alternatively, I would like for this to work:
XLODBC
1
DRIVER={Microsoft ODBC for Oracle};UID=<username>;PWD=password>;
SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<hostname>)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=<sid>)));
...
Unfortunately, it doesn't - a dialog titled "Microsoft ODBC for Oracle
Connect" pops up - the username and password is populated correctly,
but the server contains the completed string listed above
(SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<hostname>)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=<sid>)))
What if anything, am I do wrong? Thank your for your help.
.
- References:
- Oracle connection string in .dqy file
- From: jim.brown1@xxxxxxxxx
- Oracle connection string in .dqy file
- Prev by Date: Re: Why "microsoft odbc for oracle" not work?
- Next by Date: Re: Why "microsoft odbc for oracle" not work?
- Previous by thread: Oracle connection string in .dqy file
- Next by thread: Re: Why "microsoft odbc for oracle" not work?
- Index(es):
Relevant Pages
|
Loading