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
      {
       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









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
cookie creation without specifying the vaue - Java Beginners
cookie creation without specifying the vaue  how do we create cookies using java servlets by just specifying the name and not providing the value for it.because my colleague said once cookie is created value will be assigned
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 to the database
Connect to the database  how to connect to the database in the iphone
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
JDBC Database URLs
: JDBC Database URL specify a JDBC driver name Connection to a database...;  is used to identify a database using a unique name or address. All database should be connect to database using these URL strings. Format of JDBC URL
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
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
connect a web page to a database
connect a web page to a database  how to connect a web page to a database
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
connect to the database from JSP
connect to the database from JSP  How do you connect to the database from JSP?   A Connection to a database can be established from a jsp page by writing the code to establish a connection using a jsp scriptlets
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
cannot connect to database - JDBC
cannot connect to database  Iam using eclipse in my system ,when connecting the database mysql version 5.0 to the eclipse iam getting an error as ""Creating connection to mysql has encountered a problem.Could not connect to mysql
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
dsn - JDBC
done our project with dsn name "hms"; and after that when we will give to client then it is only way to access the database by using create a dsn from controle panel to client computer by manual. or any other way to set dsn at client side
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 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
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..., user name and password to connect to database
connect with Database - SQL
connect with Database  Hi, when ever i m trying to connect with 10g... problem with java 2 v1.4 with oracle 10g. But it worked well with the same code with java 5.0 with 10g. I am not sure whether it is technically correct answer
Designing a Database with a junction table or without it?
Designing a Database with a junction table or without it?  Designing a group of table with, where many tables reference single parent table. In that case is it a better option to create a junction table to maintain
Draw graph using jsp without database connection
Draw graph using jsp without database connection  Draw graph using jsp code without database connection
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
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
How sql Queries possible in DAO without creating Database connections - Java Beginners
How sql Queries possible in DAO without creating Database connections  In DAO we are writting sql queries , how it is possible without creating and closing database connections
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
How to connect to the database to my application if my database is made up in oracle
How to connect to the database to my application if my database is made up in oracle   How to connect to the database to my application if my database is made up in oracle
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
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
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
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
Java filename without extension
Java filename without extension In his section, you will learn how to get the file name without extension. Description of code: In one of the previous.... Here we going to do just reverse of that i.e retrieving file name from the given
dsn problem - JDBC
Control Panel, create an ODBC DSN (data source name) for the database. 2.Load...dsn problem  dear sir , my name is sushil kumar sir please tell me how to create dsn (jdbc ) at run time . when we will give our project
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
How to connect to database to my application if the database is made up in oracle
How to connect to database to my application if the database is made up in oracle  How to connect to database to my application if the database...) Connect to database:***ADS_TO_REPLACE_3 a) If you are using oracle oci driver
How To Connect MS ACCESS 2003 Database in C Program with Graphics.
How To Connect MS ACCESS 2003 Database in C Program with Graphics.  How To Connect MS ACCESS 2003 Database in C Program with Graphics
how to connect jsp with sql database by netbeans in a login page?
how to connect jsp with sql database by netbeans in a login page?  how to connect jsp with sql database by netbeans in a login page
how to connect jsp with sql database by netbeans in a login page?
how to connect jsp with sql database by netbeans in a login page?  how to connect jsp with sql database by netbeans in a login page
how to connect jsp with sql database by netbeans in a login page?
how to connect jsp with sql database by netbeans in a login page?  how to connect jsp with sql database by netbeans in a login page
i can not connect to database in servlet - JSP-Servlet
i can not connect to database in servlet  Hi I am following... offer .   Hi friend, Code to connect to database in servlet... to a databse by a servlet.I used the example in "Inserting Data In Database
i can not connect to database in servlet - JSP-Servlet
i can not connect to database in servlet  Hi I am following... offer .   Hi friend, Code to connect to database in servlet... to a databse by a servlet.I used the example in "Inserting Data In Database
How can I connect my database to my application ?
How can I connect my database to my application ?  How can I connect my database to my application?   Hi, You can use JDBC API to connect to database from your Java application.ADS_TO_REPLACE_1 Here is the sample
use properties file to connect to the database in jsp..
use properties file to connect to the database in jsp..  How to use properties file to connect jsp code with database ..........   Here is a jsp code that connects to database using properties file. <%@page import
file upload and insert name into database - JSP-Servlet
file upload and insert name into database  Hi, I just joined as a fresher and was given task to upload a file and insert its name into database. The max size of the file can be 1mb. Along with the file name, there are other 2
Java get Filename without Extension
Java get Filename without Extension   ... the filename without extension. For this, the file name or the directory name... ) {       System.out.println("Filename without Extension: "+file.getName().substring(0, index

Ads