connect database without specifying dsn name in java
How can i connect the database with my application without specifying the dsn name by using jdbc & odbc..... i have saw this code on the web-site
try
{
Driver d=(Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
c=DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver(*.mdb)};DBQ=E:/Final Project/Lalit.mdb");
st=c.createStatement();
} catch(Exception e){e.printStackTrace();
}
but this is not working. can i do it.
View Answers
Ads
Related Tutorials/Questions & Answers:
Advertisements
unable to connect database in java
unable to
connect database in java Hello Everyone! i was trying to
connect database with my application by using
java but i am unable to
connect... button.
4)Then give Data Source
Name and click ok button.
5)Your
DSN will get
unable to connect database in java
unable to
connect database in java Hello Everyone! i was trying to
connect database with my application by using
java but i am unable to
connect... Driver Manager] Data source
name not fou
nd and no default driver specified
DataGrid without DataBase
this information in
database, but this can be present in
java file.
NAME SEX...
database.
Ex- Employee have some elements like-
name, sex, place, designation. I... will be in
java file not in
Database. Using JSP for frontend and
java file
TO connect multiple database
TO
connect multiple database How to
connect several
database from a single application in
java depending upon the user input it will
connect to that
database
Java program to get class name without package
Java program to get class
name without package ... example which
describes you that how you can get the class
name without package.... As a result
we will finally get the class
name without package.
In this code
Connect database in Access to Netbean?
Connect database in Access to Netbean? how to
connect database in micrsoft access to Netbean?i know it can be connected by using JDBC-ODBC bridge, can i know the steps in connecting the
database?
Is there any source code
how to connect program to database
how to
connect program to database Sir i want ur help in my program. I want to save the data in the
database. When i'll click on save button the entered data must be save in the
database.
I want an action performed method
how to connect to MS access database in JSP?
how to
connect to MS access
database in JSP? how to
connect to MS access
database in JSP? Any seetings/drivers need to be set or installed before..., click finish button.
4)Then give Data Source
Name and click ok button.
5)Your
Using Network Address To Connect to a Database
name is 127.0.0.1. A JDBC URL provides a way to
identify a
database host, so... the port no of
database you must provide a
database
name. Suppose you want to
connect a MySql
database with your application over a
network then you must load
Inserting id in place of name to database
Inserting id in place of
name to database Hello,
I have a
database department where I have "id" and "
name". I am fetching this data to a jsp form in dropdown list displaying "
name" there and Now I wanted to insert data from
Java Connect to and FTP Server
Java Connect to and FTP Server What is the code for
Java Connect to and FTP Server? How to establish a connection to FTP server in
Java?
Thansk... the apache commons library to
connect/login to FTP server.
Link of complete example
Java get Filename without Extension
Java get Filename
without Extension
 ... the filename
without extension.
For this, the file
name or the directory
name is being provided.
file.getName()- This method returns the file
name