由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Question about DSN (for oracle)
相关主题
[合集] Question about DSN (for oracle)how to establish sun.jdbc.odbc.JdbcOdbcDriver
fixed:PHP IIS SQL2012, connection through NT authenticatioOracle8i能装在Win2000下吗?
[转载] How to remote access the Access Database file besides through System DSN?请教关于在NT上以ASP访问INFORMIX数据库的问题
ASP, ACCESS BUGwuwu... I hate doing this...
how to link to remote access database?大俠 问个关于asp连SQL server的问题
DSN-less connection to SQL serverHow to connect to Access 2000 database with database password in ODBC
请问ASP如何DSN-less连接Oracle数据库Re: How to connect to Access 2000 database with database password in ODBC
怎么从VBA里读SQL procedure?我的code有什么问题?问个关于ODBC的问题,谢谢!
相关话题的讨论汇总
话题: oracle话题: dsn话题: odbc话题: microsoft话题: sour
进入Database版参与讨论
1 (共1页)
c**t
发帖数: 2744
1
in XP, created system DSN with Microsoft ODBC for Oracle driver. In VBA, def
ined:
adostring = "Provider=MSDAORA.1;Password=myPassword;User ID=dbUser;Data Sour
ce=myDataSource;Persist Security Info=True"
but it always failed at: cn.Open adostring! any clue why?
y********o
发帖数: 2565
2
It seems your connection string is for OleDb instead of ODBC, judging from
the info at the following URL.
http://www.connectionstrings.com/?carrier=oracle
What if you try this connection string as shown from the same URL for ODBC?
Driver={Microsoft ODBC for Oracle};Server=myServerAddress;Uid=myUsername;Pwd
=myPassword;

def
Sour

【在 c**t 的大作中提到】
: in XP, created system DSN with Microsoft ODBC for Oracle driver. In VBA, def
: ined:
: adostring = "Provider=MSDAORA.1;Password=myPassword;User ID=dbUser;Data Sour
: ce=myDataSource;Persist Security Info=True"
: but it always failed at: cn.Open adostring! any clue why?

c**t
发帖数: 2744
3
didn't work.

Pwd

【在 y********o 的大作中提到】
: It seems your connection string is for OleDb instead of ODBC, judging from
: the info at the following URL.
: http://www.connectionstrings.com/?carrier=oracle
: What if you try this connection string as shown from the same URL for ODBC?
: Driver={Microsoft ODBC for Oracle};Server=myServerAddress;Uid=myUsername;Pwd
: =myPassword;
:
: def
: Sour

y********o
发帖数: 2565
4
This is what I use for my .Net applications:
connectionString="DSN=MyDSN4Oracle;UID=johndoe;PWD=wassup; DRIVER={Microsoft ODBC for Oracle}; SERVER=110.119.114.120;" providerName="System.Data.Odbc"
Try it out and see if it works.

【在 c**t 的大作中提到】
: didn't work.
:
: Pwd

y********o
发帖数: 2565
5
Did you dry Tis out? I'm goncerned abou dju. :-)

Microsoft ODBC for Oracle}; SERVER=110.119.114.120;" providerName="System.
Data.Odbc"

【在 y********o 的大作中提到】
: This is what I use for my .Net applications:
: connectionString="DSN=MyDSN4Oracle;UID=johndoe;PWD=wassup; DRIVER={Microsoft ODBC for Oracle}; SERVER=110.119.114.120;" providerName="System.Data.Odbc"
: Try it out and see if it works.

c**t
发帖数: 2744
6
It worked; including previous. Have to reboot to make the DSN work..

【在 y********o 的大作中提到】
: Did you dry Tis out? I'm goncerned abou dju. :-)
:
: Microsoft ODBC for Oracle}; SERVER=110.119.114.120;" providerName="System.
: Data.Odbc"

y********o
发帖数: 2565
7
Even the one you initially used worked after you reboot your system?
The one you had in your first post:
adostring = "Provider=MSDAORA.1;Password=myPassword;User ID=dbUser;Data Sour
ce=myDataSource;Persist Security Info=True"

【在 c**t 的大作中提到】
: It worked; including previous. Have to reboot to make the DSN work..
c**t
发帖数: 2744
8

Sour
yes. The trick is to reboot. I don't know what's wrong. It seems the ultimat
e solution for windows is to reboot.

【在 y********o 的大作中提到】
: Even the one you initially used worked after you reboot your system?
: The one you had in your first post:
: adostring = "Provider=MSDAORA.1;Password=myPassword;User ID=dbUser;Data Sour
: ce=myDataSource;Persist Security Info=True"

y********o
发帖数: 2565
9

ultimat
I have the same feeling towards Windows. I once in a while have IIS Worker
Process Error, and this prevents the web application from connecting to our
Oracle 10g. This error is usually resolved through reboot. Or maybe
restarting IIS should work, too.

【在 c**t 的大作中提到】
:
: Sour
: yes. The trick is to reboot. I don't know what's wrong. It seems the ultimat
: e solution for windows is to reboot.

1 (共1页)
进入Database版参与讨论
相关主题
问个关于ODBC的问题,谢谢!how to link to remote access database?
JDBC问题一问DSN-less connection to SQL server
@_@急!急!急!调用数据库时出现如下提示,该如何解决@_@请问ASP如何DSN-less连接Oracle数据库
a question of ODBC, thanks怎么从VBA里读SQL procedure?我的code有什么问题?
[合集] Question about DSN (for oracle)how to establish sun.jdbc.odbc.JdbcOdbcDriver
fixed:PHP IIS SQL2012, connection through NT authenticatioOracle8i能装在Win2000下吗?
[转载] How to remote access the Access Database file besides through System DSN?请教关于在NT上以ASP访问INFORMIX数据库的问题
ASP, ACCESS BUGwuwu... I hate doing this...
相关话题的讨论汇总
话题: oracle话题: dsn话题: odbc话题: microsoft话题: sour