[JSP ] 請大大幫我看一下jdbc odbc access這連結問題好嗎 ^ ^

看板java作者 (ilu..200)時間15年前 (2010/04/30 16:07), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
各位大大好 ! 這邊想要敘述一下我的問題 ~ 我打了以下 : ----------------------------------------------------------------- <html> <title>資料庫的開啟與關閉</title> <body> <%@page import = "java.sql.*"%> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:webdata"); if(con.isClosed()) out.println("資料庫已經關閉中!<br>"); else out.println("資料庫正在開啟中!<br>"); con.close(); if(con.isClosed()) out.println("資料庫已經關閉中! "); else out.println("資料庫正在開啟中! "); %> </body> </html> ------------------------------------------------------------------- 打完的時候存檔放到網頁上面跑,之後我Access資料庫也設定好了 但是就會出現以下 : 資料庫引擎無法開啟 '(未知的)' 檔案。它已經被其他的使用者獨佔地開啟,或者您需要 有檢視資料的權限。 ------ 請問 : 我需要安裝jdbc odbc access driver 嗎 ??? 或是有其他可以解決的方法嗎 ?? 感恩阿 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.241.92.249
文章代碼(AID): #1Bse_50n (java)