Redian新闻
>
how to link to remote access database?
avatar
how to link to remote access database?# Database - 数据库
v*m
1
My web page is in server1. The access database is in
server2.
How can I connect to the database on server2.
Now I am doing is:
objConn.Open "DSN=testDB;UID=;PWD="
and the error message is:
"Microsoft OLE DB Provider for ODBC Drivers error '80040e4e'
Operation was canceled."
Any idea, how to solve it. Thanks so..... much!!!
BTW, the DSN is system DSN.
avatar
a*a
2
how about change UID=; to "UID=Admin;"

【在 v**m 的大作中提到】
: My web page is in server1. The access database is in
: server2.
: How can I connect to the database on server2.
: Now I am doing is:
: objConn.Open "DSN=testDB;UID=;PWD="
: and the error message is:
: "Microsoft OLE DB Provider for ODBC Drivers error '80040e4e'
: Operation was canceled."
: Any idea, how to solve it. Thanks so..... much!!!
: BTW, the DSN is system DSN.

avatar
v*m
3
got the same error message

【在 a*****a 的大作中提到】
: how about change UID=; to "UID=Admin;"
avatar
a*a
4
how about use JET provider instead of "OLEDB Provider for
ODBC"?
your connection string would be
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=\\server2\someshare\test.mdb"

【在 v**m 的大作中提到】
: got the same error message
avatar
v*m
5
now I got the different error message:
Microsoft JET Database Engine error '80004005'
The Microsoft Jet database engine cannot open the file
'\\server2\someshare\test.mdb'. It is already opened
exclusively by another user, or you need permission to view
its data.
any clue?

【在 a*****a 的大作中提到】
: how about use JET provider instead of "OLEDB Provider for
: ODBC"?
: your connection string would be
: "Provider=Microsoft.Jet.OLEDB.4.0;Data
: Source=\\server2\someshare\test.mdb"

avatar
a*a
6
JET db can only be used by one process at any time.
Try to close any program using this access file. Then run ur
web page again.

【在 v**m 的大作中提到】
: now I got the different error message:
: Microsoft JET Database Engine error '80004005'
: The Microsoft Jet database engine cannot open the file
: '\\server2\someshare\test.mdb'. It is already opened
: exclusively by another user, or you need permission to view
: its data.
: any clue?

avatar
v*m
7
I don't think there is any other program is using this
access file.
My web page is on server1, database on server2. And in order
to access to
server2, I assign a new user named IUSR_Server1, plus a
password(it's required).
However, when user visit server1 anonymously, they don't
have password at all.
So do you think that's the problem? Thank you so....much!!!
【 在 amnesia (Hua Hi Lo Ho) 的大作中提到: 】
avatar
a*a
8
I am out of clue now:( try posting your question to some
newsgroups?

【在 v**m 的大作中提到】
: I don't think there is any other program is using this
: access file.
: My web page is on server1, database on server2. And in order
: to access to
: server2, I assign a new user named IUSR_Server1, plus a
: password(it's required).
: However, when user visit server1 anonymously, they don't
: have password at all.
: So do you think that's the problem? Thank you so....much!!!
: 【 在 amnesia (Hua Hi Lo Ho) 的大作中提到: 】

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。