5
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by senthil_sivanat
0

but what the heck does this have to do with JSP?
DSN is an ODBC concept, and has no relation to Java whatsoever.
It's also an utterly outdated concept for for example .NET.

0

how to make a connection url string using DSN

You can use these two lines for connection using DSN

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:dsn");

here i am using type 1 driver for connectivity.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.