Home Answers Viewqa JDBC ODBC connection

 
 


abhisikta patro
ODBC connection
0 Answer(s)      2 months and 11 days 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.

View Answers









Related Pages:
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
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
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
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
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");  
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
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
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
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 with database - JSP-Servlet
connection with database  I tried the DSN and connection... { Connection con=null; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:soni
Understanding Connection Object
url = "jdbc: odbc: makeConnection"; Connection con... Understanding Connection Object       A Connection object represents a connection
JDBC Connection and Registration
JDBC Connection and Registration   How to create a JDBC connection... void main(String[] args) throws Exception { Connection conn = DriverManager.getConnection("jdbc:odbc:student"); Class.forName
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
java database connection - JDBC
{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection connect =DriverManager.getConnection("jdbc:odbc:access"); pstm=connect.prepareStatement("insert into data
Connection
Connection  What is Connection
connection
connection   how to make multiple database connection using jdbc
Connection on MsAccess - Java Beginners
Connection on MsAccess  Hi friend.. This is the code .... I have... Connection getConnection() { Connection con=null; // Loading driver try { String url = "jdbc:odbc:credit"; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver
server database connection - JSP-Servlet
"); 2.Connection con=DriverManager.getConnection("jdbc:odbc:Driver={Microsoft ODBC For Oracle}","scott","tiger"); But how to get the connection from..." in that case how we will get the database connection   Hi Friend
connection database error
connection database error  import java.awt.EventQueue; // import...{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:NWIND
error oracle database connection?
error oracle database connection?  hi now i am trying to connect...; PreparedStatement stmt=null; Connection con =null; ResultSet rs=null...(); } try { con =DriverManager.getConnection("Jdbc:odbc:servletdb
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
How to Retrieve Excel data into mysql using type 2 JDBC-ODBC driver
"); Connection conn = DriverManager.getConnection("jdbc:odbc:excel...How to Retrieve Excel data into mysql using type 2 JDBC-ODBC driver  Can any please help it is very urgent. I tried to read excel sheet using ODBC
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
Error while SQL Server connection to Java
Error while SQL Server connection to Java  import java.sql.*; public... Exeption { Connection con=null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:SQL_SERVER;user=DTHOTA;password
Error while SQL Server connection to Java
Error while SQL Server connection to Java  import java.sql.*; public... Exeption { Connection con=null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:SQL_SERVER;user=DTHOTA;password
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
code for jsp to db connection using jdbc
("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc...code for jsp to db connection using jdbc  please send me the code   Hi Friend, Try the following code: 1)form.html: <html> <
C and C++ books-page8
an ODBC connection, generating result sets and fetching the results. You...; The ODBC from C Tutorial  In this section for example-based C tutorials that introduce you to ODBC API programming in C. Each tutorial contains
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
Connection pooling
Connection pooling  What is Connection pooling
connection closing
connection closing  hello, what happens if connection is not closed
program created and compilation error of connection rightly created n tested
program created and compilation error of connection rightly created n tested  // I have made connection as the data source dsn2 and i have also... error for connection on which other programs are running smoothly...:( import
jdbc,odbc,MySQL,swing - Java Beginners
jdbc,odbc,MySQL,swing  write a code that displays a menu list of all available database drivers in a window,and allows the user to select any driver from this list and execute any query (within a text field)related
Connection pooling
Connection pooling  hii, What is Connection pooling?   hello, Connection pooling is a technique used for sharing server resources among requesting clients. Connection pooling increases the performance of Web

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.