connect database without specifying dsn name in java

Ads
 

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:
connect database without specifying dsn name in java
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
Drop constraint of table in oracle without specifying constraint name
Drop constraint of table in oracle without specifying constraint name  I create my table in oracle with check constraint but I forgot constraint name.Now I want to drop constraint of my table without specifying constraint name
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
Connect a linux machine from linux using java program without password
Connect a linux machine from linux using java program without password  Connect a linux machine from linux using java program without password. Can anyone help me
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
connect a web page to a database
connect a web page to a database  how to connect a web page to a 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
java script unable to connect to oracle database and insert data
java script unable to connect to oracle database and insert data  ... is to insert data from jsp to oracle database 8, so i create a table in oracle departments and two coloum name depaermentname and departmentid, i found this below
connect database with javascript
connect database with javascript  can you please tell me how to connect database with javascript code. [email protected] this is my mail id thanks in advance
Create a Table in Mysql database through SQL Query in JSP
; This is detailed java code to connect a jsp page to mysql database and create a table of given name in the specified database. Create a database : First create a database... format with machine name, port number and database
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
Pagination without using database in php
Pagination without using database in php  How can I show multiple images in multiple rows with pagination in php
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
Drop Check constraint without constraint name in oracle
Drop Check constraint without constraint name in oracle  I created check constraint for my table.I forgot its name.Now I want to drop that constraint without constraint name
How to connect with database
How to connect with database  jdbc connection
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
Draw graph using jsp without database connection
Draw graph using jsp without database connection  Draw graph using jsp code without database connection
HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE?
HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE?  HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE
HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE?
HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE?  HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE
how to connect to database in php using mysql
how to connect to database in php using mysql  how to connect to database in php using mysql
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
JAVA DATABASE CONNECTION WITH JTABLE
JAVA DATABASE CONNECTION WITH JTABLE  HOw To Load Database Contents From Access Database to JTable without using Vector
How to save form fields into the MySql Database without submit button in jsp?
How to save form fields into the MySql Database without submit button in jsp?  I want to store user inputs into the database using javasccript or ajax or jqury but without submit button. Form Contains three fields
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
what is ment by jdbc and how to connect with database?
what is ment by jdbc and how to connect with database?  i want answer for this question
Without Using Form in Java Script
Without Using Form in Java Script  HOw to Reset the data in javascript without using form tag
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
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
retrive image from database using jsp without stream
retrive image from database using jsp without stream  How to retrive image from database using jsp without stream like (inputStream

Ads