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



Home Answers Viewqa JDBC ODBC connection
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


abhisikta patro
ODBC connection
0 Answer(s)      a year and 7 months ago
Posted in : JDBC


import java.sql.*;
import java.util.*;
public class OJDBCAvi
{

    public static void main(String args[])throws Exception
    {
        String sql="insert into year values(3,'avi1')";
        Class c=Class.forName("oracle.jdbc.driver.OracleDriver");
        Driver d=(Driver)c.newInstance();
        String s="jdbc:oracle:thin:@localhost:1521:ORCL";
        Properties p=new Properties();
        p.put("user","scott");
        p.put("password","tiger");
        Connection con=d.connect(s,p);
        Statement st=con.createStatement();
        st.executeUpdate(sql);
        con.close();
        System.out.println("table details are saved");
    }
}

This is my ODBC program,bt here I am getting error i.e Exception in Thread "main" java.sql.SQLException:Io Exception : The network Adapter could not establish the connection.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
ODBC connection
ODBC connection   import java.sql.*; import java.util.*; public...("password","tiger"); Connection con=d.connect(s,p); Statement st... ODBC program,bt here I am getting error i.e Exception in Thread "main
ODBC connection
ODBC connection   import java.sql.*; import java.util.*; public...("password","tiger"); Connection con=d.connect(s,p); Statement st... ODBC program,bt here I am getting error i.e Exception in Thread "main
Advertisements
ODBC connection
ODBC connection   import java.sql.*; import java.util.*; public...("password","tiger"); Connection con=d.connect(s,p); Statement st... ODBC program,bt here I am getting error i.e Exception in Thread "main
jdbc odbc connection
jdbc odbc connection  i need a program in java which uses a jdbc odbc connection   Hi, You can create odbc datasource on your windows computer and then access in your Java program. Read the JDBC ODBC example. Thanks
JDBC-Odbc Connection
JDBC-ODBC Connection       JDBC-ODBC Connection is a JDBC driver that translates the operation... in explaining JDBC Odbc Connection in Java. The code explains you a how creation
JDBC ODBC Connection In Java
JDBC ODBC Connection In Java In this section we will read about the various aspects of JDBC ODBC such as, JDBC-ODBC bridge, JDBC ODBC connection, how... is sun.jdbc.odbc.JdbcOdbcDriver. JDBC ODBC Connection To Connect the JDBC and ODBC
Connection using Jdbc-odbc bridge Driver
Connection using JDBC-ODBC bridge driver JDBCExample.java... the connection open by con object. Steps to connect JDBC-ODBC bridge driver..."); con=DriverManager.getConnection("jdbc:odbc:datastud");  
online quiz program coding using jsp, jdbc odbc connection with ms. access.. Thank you.
online quiz program coding using jsp, jdbc odbc connection with ms. access... odbc connection with ms. access.. Thank you.   Create table test...").newInstance(); Connection connection = DriverManager.getConnection("jdbc:mysql
PHP SQL ODBC
; This example illustrates how to create an ODBC Connection for php application. Follow the given steps to create an ODBC connection to a MS Access Database: .... Connection from database is created using odbc_connect() and query "
Php Sql ODBC
Php Sql ODBC  This example illustrates how to create a ODBC Connection for php application. With an ODBC connection, you can connect to any database, on any computer in your network, as long as an ODBC connection is available
odbc - Java Beginners
What is odbc connection  What is odbc connection
jdbc odbc
{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:swing"); String sql = "INSERT
jdbc odbc
jdbc odbc   i have two tables in database 1table's attribute is foreign key of another in this case how to retrive value from both table and show in a gridview combine using java code   Sql query to retrieve values
Connection
Connection  What is Connection
connection
connection   how to make multiple database connection using jdbc
connection
the connection with the available port on the host machine: import java.net.... the connection was not established. Predict the output of the preceding code. Explain why the connection cannot be established
The JDBC-ODBC Bridge.
The JDBC-ODBC Bridge.  Are there any ODBC drivers that do not work with the JDBC-ODBC Bridge
What is ODBC - JDBC
What is ODBC  What is Java ODBC and JDBC?   Method of type... | ODBC Driver | Data base Odbc drivers
Java JDBC ODBC
Java JDBC ODBC  What is the difference between JDBC and ODBC
Java Jdbc-odbc
Java Jdbc-odbc  What is the difference between JDBC and ODBC
JDBC ODBC related problem
JDBC ODBC related problem  i WANT HELP RELATED TO JDBC CONNECTIVITY... { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con; con = DriverManager.getConnection("jdbc:odbc:Digambar
odbc MS EXCEL
odbc MS EXCEL  hey my whole database is stored in MS Excel. so please tell me that can we connect to that database. if yes, how to do that. please help me out i am doing it in netbeans can please tell me the steps
JDBC-ODBC Bridge multi-threaded.
JDBC-ODBC Bridge multi-threaded.  Is the JDBC-ODBC Bridge multi-threaded
JDBC-Odbc Connectivity
JDBC-ODBC Connectivity       The code illustrates an example from JDBC-ODBC... an object of connection class. This method is used to built a connection
jdbc odbc sql server exception
jdbc odbc sql server exception  Hi, I am trying to use sql server with java jdbc odbc but I am getting this exception java.sql.SQLException: [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near '@P1
how to set fetch size for jdbc odbc driver
how to set fetch size for jdbc odbc driver  What is the default fetch size for the JDBC ODBC driver and how can i fetch a set of results for JDBC ODBC driver?   Fetching results JDBC ODBC Driver A. The default fetch
Java jdbc connection
Java jdbc connection  Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection
how to connect java with ms access using odbc in eclipse
"); //Connection con = DriverManager.getConnection("jdbc:odbc:DRIVER={Microsoft Access Driver (*.accdb)};DBQ=student.accdb","",""); Connection con...how to connect java with ms access using odbc in eclipse  import
Connection pooling
Connection pooling  What is Connection pooling
 

 

 

DMCA.com