Either
(a) you are accidentally writing to a different directory than the one you think you are writing to
or
(b) you are somehow not committing the transaction and the transaction is being rolled back, resulting in your data being lost

On 2013-04-11 08:50, Les Hartzman wrote:
jdbc:h2:~/testapp

On Wednesday, April 10, 2013 9:53:17 PM UTC-7, Noel Grandin wrote:

    What does your database URL look like?

    On Thursday, 11 April 2013, Les Hartzman wrote:

        I've got an application that I originally used MySQL for and
        now I want to use H2 (embedded mode; latest version 1.3.171).
        I used the Console app to create tables - and they're visible
        so I know they were properly created. The application
        successfully uses the H2 database, but when I close down the
        application the disk file is not written to.

        One suggestion was to put in an SQL SHUTDOWN call, but then
        this makes it specific to H2 as I don't want to have MySQL
        suddenly quit when the app exits. Can this be done or do I
        need to go to a server mode instead? I'd like to keep it
        embedded for quick testing.

        All help appreciated.

        Les

-- You received this message because you are subscribed to the
        Google Groups "H2 Database" group.
        To unsubscribe from this group and stop receiving emails from
        it, send an email to [email protected].
        To post to this group, send email to [email protected].
        Visit this group at
        http://groups.google.com/group/h2-database?hl=en
        <http://groups.google.com/group/h2-database?hl=en>.
        For more options, visit
        https://groups.google.com/groups/opt_out
        <https://groups.google.com/groups/opt_out>.


--
You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to