View Single Post
  #1 (permalink)  
Old 04-04-2008, 09:10 AM
burepallisri burepallisri is offline
Member
 
Join Date: Apr 2008
Posts: 2
burepallisri can only hope to improve
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("jdbcdbc: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
Reply With Quote
Sponsored Links