CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Working with JSP and accessdatabases

Print topic Send  topic

Author Message
pat_m_brown@yahoo.com
Posted: 03/07/2002, 10:02 PM

When working with JSP code and Access databases, I am having a problem
getting connected to the access database. In the file common.asp
there is the following lines

//Database connection string
static final String DBDriver ="";
static final String strConn ="";
static final String DBusername="";
static final String DBpassword="";

Lets consider I have a access database called jspdb.mdb
in c:\data

How would I set the connection string for that using the above lines?
Do I need to setup a DSN for this?

-- Pat Brown --
-- Pat Brown--
Nicole
Posted: 03/11/2002, 2:32 AM

Pat,
try to use ODBC connection to Access db. Make sure that IDBC driver is installed on your machine. Create DSN to db. Then connection staring and db driver would be:
Connection String: jdbc:odbc:DSN_name
Database Driver: sun.jdbc.odbc.JdbcOdbcDriver
lost 1
Posted: 06/13/2002, 8:20 AM

Where can I get the IDBC driver? I am running W2K w/iis 5

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.