回 帖 发 新 帖 刷新版面

主题:jsp连接access数据库的问题,麻烦各位高手看完

运行后出现如下错误:
��ݿ����Ӵ��󣡣�������Ϣ���£�
[Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序
源代码为  请各位高手指点<%@page contentType="text/html" pageEncoding="utf-8" language="java" import="java.sql.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%
            try {
                String spath = "jl_access";
                String dbpath = application.getRealPath(spath);       
                String url = "jdbc:odbc:driver={Microsoft Access Driver (*.mdb,*.accdb)};DBQ=" + dbpath;
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                Connection conn = DriverManager.getConnection(url);

                Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                String sql = "select * from jl1";
                ResultSet rs = stmt.executeQuery(sql);
0

回复列表 (共1个回复)

沙发

在线平台:www.7macau.com    
在线平台:www.7macau.net    
在线平台:www.lcmty.com 
在线平台:www.jjxtech.com 
在线平台:www.bp258.com
在线平台:www.pb258.com  
在线平台:www.258bp.com  
博狗体育场迎新奖金:http://10000.258bp.com 
博狗娱乐场迎新奖金:http://10001.258bp.com 
博狗扑克优惠活动:http://10002.258bp.com 
博狗扑克迎新奖金:http://10003.258bp.com 
博狗真人娱乐场优惠活动:http://10004.258bp.com 
博狗真人娱乐场迎新奖金:http://10005.258bp.com 
博狗篮球迎新奖金:http://10006.258bp.com 
博狗足球迎新奖金:http://10007.258bp.com 
888真人 Link 1:http://10008.258bp.com 
888真人 Link 2:http://10009.258bp.com
888真人 Link 3:http://10010.258bp.com
aetos F00:http://10011.258bp.com
aetos F01:http://10012.258bp.com
aetos F02:http://10013.258bp.com
aetos F03:http://10014.258bp.com
aetos F04:http://10015.258bp.com
aetos E00:http://10016.258bp.com
aetos E01:http://10017.258bp.com
aetos E02:http://10018.258bp.com
aetos E03:http://10019.258bp.com
aetos E10:http://10020.258bp.com
aetos E11:http://10021.258bp.com
aetos E12:http://10022.258bp.com
aetos E20:http://10023.258bp.com
aetos E21:http://10024.258bp.com
aetos E22:http://10025.258bp.com
RB88主页:http://10026.258bp.com
RB88走地皇:http://10027.258bp.com
RB88娱乐皇:http://10028.258bp.com
RB88游戏皇:http://10029.258bp.com
RB88金币皇:http://10030.258bp.com
RB88彩票皇:http://10031.258bp.com
RB88对战皇:http://10032.258bp.com
RB88促销:http://10033.258bp.com
RB88注册:http://10034.258bp.com
RB88足彩:http://10035.258bp.com
RB88篮球:http://10036.258bp.com
RB88虚拟足球:http://10037.258bp.com
RB88数据库:http://10038.258bp.com
RB88娱乐皇GD:http://10039.258bp.com
RB88娱乐皇AG:http://10040.258bp.com
RB88娱乐皇AB:http://10041.258bp.com
RB88娱乐皇CP:http://10042.258bp.com
RB88娱乐皇EA:http://10043.258bp.com
同乐城首页:http://10044.258bp.com
同乐城体育:http://10045.258bp.com
同乐城娱乐城:http://10046.258bp.com
同乐城游戏:http://10047.258bp.com
同乐城优惠:http://10048.258bp.com
同乐城立即注册:http://10049.258bp.com
同乐城landing:http://10050.258bp.com
鸿运国际Link 1:http://10051.258bp.com
鸿运国际Link 2:http://10052.258bp.com
旋乐吧首页:http://10053.258bp.com
旋乐吧体育投注:http://10054.258bp.com
旋乐吧娱乐场:http://10055.258bp.com
旋乐吧彩票:http://10056.258bp.com
旋乐吧三月优惠:http://10057.258bp.com
乐投:http://23.258bp.com
AG亚游:http://25.258bp.com 
sstforex:http://26.258bp.com  
bfsforex:http://27.258bp.com 
etxcapital:http://28.258bp.com    
太阳城:http://32.258bp.com 
vwin:http://33.258bp.com
william hill:http://34.258bp.com
巨城:http://35.258bp.com   
新澳博:http://37.258bp.com 
新葡京:http://38.258bp.com 
高博亚洲:http://39.258bp.com   
金沙:http://40.258bp.com
大班:http://42.258bp.com
富易堂:http://43.258bp.com     
鑫鼎:http://44.258bp.com   

我来回复

您尚未登录,请登录后再回复。点此登录或注册