File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes to run alter command in Access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "to run alter command in Access" Watch "to run alter command in Access" New topic
Author

to run alter command in Access

dipin mathew
Greenhorn

Joined: Oct 01, 2001
Posts: 3
I have been able to run the create and drop tables using the sql statements in Microsoft Access but the alter command to add columns is not working. Code is..
stmt.executeUpdate(" alter table tablename add (address VARCHAR(15) ,city VARCHAR(15) ");
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

what is the exception message/number?
Jamie
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: to run alter command in Access
 
Similar Threads
Exceptions (4) in catalina.out
CVS How To
upgrading to 2.1.6
SQL Error
inserting a new column to an existing oracle table with a fixed value in all the rows of that column