Thanks for u'r response.If you are talking about ODBC DSNs then yes you can connect to databases in Java without ODBC DSNs. In fact except for rare cases you don't need ODBC at all.
Is it possible to connect to a database without
creating DSN in Java?
I have created a class named "Table" for my projectsA JDBC tutorial will give you a better idea than a random snippet on a forum, and will answer your next 10 questions or so before you've even thought of them
I need this class to be able to connect with the
specified table using the given user name and
password and the database server name that was
supplied as a parameter to the constructor of the
class. So can you please tell me the code snippet to
connect to the database using the given user name,
password and the server name.