Make your own free website on Tripod.com

InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InstantDB: simple code


Hi Guys,

Try putting a try / catch clause around the statement execution.
I think it is throwing an exception when it cannot find the table to drop
it, the first time through.

               for (int i=0; i<sql.length; i++) {
                    try {
                         String SQLstr = sql[i];
                         if (stmt.execute(SQLstr)) {
                              ResultSet rs = stmt.getResultSet();
                              dispResultSet(rs);
                              rs.close();
                         } // if
                    } catch(Exception ignored) {}
               } // for

regards
David


Phil

Whoops - code should have displayed the contents of the table. See new
attached.

If you're having some difficulty with this, there is a very good
introduction to JDBC in the JDK 1.2 docs. Goto "Enterprise Features" and
click on  "Java Database Connectivity", then goto "Getting Started" and
click on "JDBC Guide: Getting Started".

Regards

Pete

--

Peter Hearty                         peter.hearty@lutris.com
Lutris Technologies (UK)        http://www.lutris.com
----- Original Message -----
From: <Pjnicolai@cs.com>
To: <instantDB@enhydra.org>
Sent: Wednesday, October 18, 2000 10:16 PM
Subject: Re: InstantDB: simple code


> Thank you very much for the code.  It runs, which is the big problem I
was
> having.  However, it doesn't display anything.  It appears that I get the
DOS
> screen, it runs, and then says "Database sample is shutting down.....",
> "Database sample shutdown complete......", and finally "Press any key to
> continue....".  I press a key and nothing happens.  What am I doing
wrong???
> Thank you.   Phil
>
--------------------------------------------------------------------------
---
> To unsubscribe from this mailing list, send email to
majordomo@enhydra.org
> with the text "unsubscribe instantdb" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-instantdb@enhydra.org.
>



-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.