Not get ans properly
I create db on my system using MS-acess,then I create DSN for program but I still not get answer It throws an Exception "java.lang.classNotFoundException",what is this I don't get plz help me.
View Answers
September 6, 2011 at 11:05 AM
Create DSN connection:
1. Open Data Sources (Start->Control Panel->Administrative Tool->Data Sources(ODBC)
2. Open User DSN tab
3. Add a user DSN
4. Select Microsoft Access Driver(*.mdb)
5. Select database name and Create the DSN name (e.g emp)
6. Click "Ok" and then compile the following java code.
import java.sql.*;
public class CreateTable {
public static void main(String[] args) throws Exception {
Connection conn = DriverManager.getConnection("jdbc:odbc:student");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Statement st = conn.createStatement();
st.executeUpdate("create table employee (empid int,empname varchar(30));");
System.out.println("Table is created successfully!");
st.executeUpdate("insert into employee (empid,empname ) values (1,'Roseindia')");
System.out.println("Data is inserted successfully!");
st.close();
conn.close();
}
}
September 10, 2011 at 1:04 PM
Yes sir I have done it & it compiled properly but when i run it Eception is come(java.lang.ClassNotFoundException:jdbc.odbc.JdbcOdbcDriver)
what is this?I dont get plz tell me.
September 11, 2011 at 6:41 PM
Yes sir i got answer thank u very much
Ads
Related Tutorials/Questions & Answers:
Not get ans properly
Not
get ans properly I create db on my system using MS-acess,then I create DSN for program but I still not
get answer It throws an Exception "java.lang.classNotFoundException",what is this I don't
get plz help me.
 
Advertisements
ModuleNotFoundError: No module named 'ans-python'
ModuleNotFoundError: No module named '
ans-python' Hi,
My Python... '
ans-python'
How to remove the ModuleNotFoundError: No module named '
ans... have to install padas library.
You can install
ans-python python
ModuleNotFoundError: No module named 'ans-python'
ModuleNotFoundError: No module named '
ans-python' Hi,
My Python... '
ans-python'
How to remove the ModuleNotFoundError: No module named '
ans... have to install padas library.
You can install
ans-python python
ModuleNotFoundError: No module named 'ans-python'
ModuleNotFoundError: No module named '
ans-python' Hi,
My Python... '
ans-python'
How to remove the ModuleNotFoundError: No module named '
ans... have to install padas library.
You can install
ans-python python
get
get ( ) Method in PHP what is
get method in PHP
Please visit the following link:
http://www.roseindia.net/php/php-
Get-Post.shtml
get and post
get and post what is php and
get
PHP
get and post method
get method
get method how to use
get method:
secure method is post method and most of use post method why use a
get method
get Blob
get Blob how i can display a Blob in XHTML (i developpe with hbernate
Hibernate get
In this section, you will learn about
get method of Hibernate
property in javascript get set
property in javascript
get set How to create the
get and set property in JavaScript?
Creating
Get and Set properties in JavaScript example..
myVar Sample = {
nval : "",
get get() { return this.nval; },
set
post ,get data in the database
post ,
get data in the database post ,
get data in the database Please visit the following links:
PHP
get post data
PHP Tutorials
Get image color
Get image color How to
get image color in iPhone SDK application
Get GMT from IP
Get GMT from IP How do I
get GMT value from IP address??
Thanx in Adv
ModuleNotFoundError: No module named 'by_get'
ModuleNotFoundError: No module named 'by_
get' Hi,
My Python... 'by_
get'
How to remove the ModuleNotFoundError: No module named 'by_
get'... to install padas library.
You can install by_
get python with following command
ModuleNotFoundError: No module named 'get'
ModuleNotFoundError: No module named '
get' Hi,
My Python program is throwing following error:
ModuleNotFoundError: No module named '
get'
How to remove the ModuleNotFoundError: No module named '
get' error
ModuleNotFoundError: No module named 'get'
ModuleNotFoundError: No module named '
get' Hi,
My Python program is throwing following error:
ModuleNotFoundError: No module named '
get'
How to remove the ModuleNotFoundError: No module named '
get' error