![]() |
Problem with JDBC
I'm getting an weird error while accessing the database from JDBC driver in JSP using JAVA codes.
plz help me to find a sollution the program and error details are below. Code:
<%@ page import="java.sql.*" %>running this file returns me a error message, given below Quote:
I am Using: OS: Windows 7 RC Database: Microsoft SQL Server 2000 IDE: NetBeans v6.1 (Server Apache TomCat) |
Re: Problem with JDBC
Don't you need to open the connection?
|
Re: Problem with JDBC
Quote:
Code:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); |
Re: Problem with JDBC
Problem is related to database connection.So check your connectivity as database setting .And you are using DSN keyword so rename it Perhaps you could solve your problem.
|
Re: Problem with JDBC
if you want to use JDBC I suggest you to use JDBC class from shine enterprise pattern
it help you to set , the setting , it do all jobs for you it's easier and faster than that old jdbc. it has also soppurt hibernate here is the library and document : j2os.org http://SourceForge.net/projects/shine-enterpris/files/ |
| All times are GMT +5.5. The time now is 03:39. |