Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners connect database without specifying dsn name in java
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Vishal Dhole
connect database without specifying dsn name in java
0 Answer(s)      2 years and 6 months ago
Posted in : Java Beginners


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.


Advertisement
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 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
Connect to the database
Connect to the database  how to connect to the database in the iphone
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
connect a web page to a database
connect a web page to a database  how to connect a web page to a database
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
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
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 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
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
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
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 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 with database
How to connect with database  jdbc connection
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
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
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
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
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
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 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 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
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
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 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
 

 

 

DMCA.com