Results 1 to 4 of 4
  1. #1
    burepallisri is offline Member
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    0

    Question hai friends i got the Exception in the following java program , how do i resolve it ?

    this is the program
    import java.sql.*;
    import java.lang.*;
    import java.io.*;
    public class Verify
    {
    private Connection Database;
    private Statement DataRequest;
    String query;
    public Verify() throws Exception
    {
    try
    {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Database=DriverManager.getConnection("jdbc:odbc:ne wcover2");
    DataRequest=Database.createStatement();
    for(int m=0;m<12;m++){
    query="create table Table" +m+ "(";
    for (int i=1;i<=55;i++)
    query+="Field"+i+" integer,";
    query+="Field"+(56)+" integer";
    query+=")";

    try
    {
    System.out.println("."+query+".");
    DataRequest.executeUpdate(query);
    }
    catch (Exception e)
    {
    System.out.println("Excption in create "+e);
    }

    }
    DataRequest.close();
    }catch(Exception e){ e.printStackTrace(); }
    }
    public static void main (String args[]) throws Exception {

    Verify ob=new Verify();

    }
    }
    -------------------------------------------------------------
    can please any body help me
    withregards

  2. #2
    burepallisri is offline Member
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    0

    Default

    qqqqqqqqqqqqqqqqqqqq

  3. #3
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    8

    Default

    Welcome to the Forums.

    qqqqqqqqqqqqqqqqqqqqqqq
    Please do not waste posts on spam. This is your first and last warning.

    That said, what is the exception you're receiving? What happens when you run the code? What are you trying to accomplish?
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

  4. #4
    DonCash's Avatar
    DonCash is offline Moderator
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    240
    Rep Power
    9

    Default

    I'm guessing the exception is because of:
    Java Code:
    Database=DriverManager.getConnection("jdbc:dbc:ne wcover2");
    This does not look right to me.
    Did this post help you? Please me! :cool:

Similar Threads

  1. Want Java Programmer Friends.
    By fastspeed33 in forum New To Java
    Replies: 1
    Last Post: 01-23-2011, 06:12 PM
  2. Want Java Programmer Friends.
    By fastspeed33 in forum Advanced Java
    Replies: 6
    Last Post: 11-28-2007, 04:46 PM
  3. Hi Java Tech Friends !!!!!
    By Sasanka Sekhar Kar in forum Introductions
    Replies: 0
    Last Post: 11-16-2007, 02:16 PM
  4. Replies: 0
    Last Post: 10-04-2007, 10:33 PM
  5. MySite/Valid.java:56: cannot resolve symbol
    By Albert in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 07-05-2007, 06:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •