由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Help on JDBC:ODBC SOS
相关主题
JDBC问题一问Enmergency: Oracle Driver, Thanks a lot
ORACLE Pro*C 远程接续一问?UNIDATA怎么连接进asp.net c#? (转载)
web based database?DSN-less connection to SQL server
[转载] jdbc/odbc MS Access file creation questionHelp---access Server.
SQL Server 和Access到底有多大区别ODBC
数据库问题一问how to establish sun.jdbc.odbc.JdbcOdbcDriver
Ask for help about Access and Foxbpro!JDBC-ODBC Bridge supporting JDBC API 2.0?
[转载] 我的asp脚本为什么总是出现"数据库对象不能更新"的错误 ?Question
相关话题的讨论汇总
话题: odbc话题: jdbc话题: driver话题: access话题: sos
进入Database版参与讨论
1 (共1页)
s**u
发帖数: 17
1
I am trying to connect to access database through JDBC:ODBC in a java
programm
I tried to connect to the following url:
JDBC:ODBC:MyServer;database=mydb.mdb
and establish the access file with corresponding server and filename.
but when I run the program, it keep on telling me the following:
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not
fou
nd and no default driver specified
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:3661)
at sun.jd
m******t
发帖数: 2416
2
Did you create a data source with that specific name in your ODBC
settings?

【在 s**u 的大作中提到】
: I am trying to connect to access database through JDBC:ODBC in a java
: programm
: I tried to connect to the following url:
: JDBC:ODBC:MyServer;database=mydb.mdb
: and establish the access file with corresponding server and filename.
: but when I run the program, it keep on telling me the following:
: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not
: fou
: nd and no default driver specified
: at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:3661)

s**u
发帖数: 17
3

I set up the data source with "ODBC datasource administrator". I added a MS
Access driver, setting as following:
DRIVER={Microsoft Access Driver (*.mdb)}
Server=MyServer
database=mydb
then I selected the file mymd.mdb to link to the datasource
source file named mydb.dsn was constructed by computer.
there must be something wrong, but i just don't know it

【在 m******t 的大作中提到】
: Did you create a data source with that specific name in your ODBC
: settings?

m******t
发帖数: 2416
4
What is the name you gave to the data source? It has to be
the one you passed to the JDBC:ODBC bridge in your program.

【在 s**u 的大作中提到】
:
: I set up the data source with "ODBC datasource administrator". I added a MS
: Access driver, setting as following:
: DRIVER={Microsoft Access Driver (*.mdb)}
: Server=MyServer
: database=mydb
: then I selected the file mymd.mdb to link to the datasource
: source file named mydb.dsn was constructed by computer.
: there must be something wrong, but i just don't know it

1 (共1页)
进入Database版参与讨论
相关主题
QuestionSQL Server 和Access到底有多大区别
Oracle8i能装在Win2000下吗?数据库问题一问
JDBC<======================>Oracle8iAsk for help about Access and Foxbpro!
Question about Oracle Driver[转载] 我的asp脚本为什么总是出现"数据库对象不能更新"的错误 ?
JDBC问题一问Enmergency: Oracle Driver, Thanks a lot
ORACLE Pro*C 远程接续一问?UNIDATA怎么连接进asp.net c#? (转载)
web based database?DSN-less connection to SQL server
[转载] jdbc/odbc MS Access file creation questionHelp---access Server.
相关话题的讨论汇总
话题: odbc话题: jdbc话题: driver话题: access话题: sos