Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Other source in ebook

connAccess

  • Category : source in ebook
  • Tags :
  • Update : 2012-11-26
  • Size : 8kb
  • Downloaded :0次
  • Author :张***
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
~给你个不许要数据源直接连接的例子~连接access要制定到它数据库的mdf文件 Connection conn=null try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") String url="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)} DBQ="+DBpath conn=DriverManager.getConnection(url,"","") } catch (ClassNotFoundException e) { JOptionPane.showMessageDialog(null,e) } catch (SQLException e) { JOptionPane.showMessageDialog(null,e) } 注意事项: 1.其中的DBpath即是数据库的路径,可以是相对的,也可以是绝对的。 2.尤其要注意url字符串中大括号中的空格一定要有,即Microsoft Access Driver (*.mdb)这里的空格一 定要保留,否则会报错。 3.getConnection()方法中后两个参数是DB的用户名和密码,根据自己的情况设置。
Packet file list
(Preview for download)
connAccess\index.jsp
..........\user.mdb
..........\WEB-INF\web.xml
..........\.......\classes
..........\.......\lib
..........\WEB-INF
connAccess
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is the largest source code store in internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.