On Mar 17, 11:46 am, Tim <[email protected]> wrote:
> On Mar 17, 11:37 am, Joonas Pulakka <[email protected]> wrote:
>
>
>
> > On Mar 17, 5:00 pm, Tim <[email protected]> wrote:
>
> > > While trying to open my H2 database recently, I've run into an
> > > exception that hasn't been happening in the past.  The only thing I
> > > can think of that has changed is that I moved the database from a
> > > networked PC to my development PC, but I know that the connection has
> > > worked since I made the move.
>
> > > What is happening is that when I make the following call:
> > > DriverManager.getConnection ("jdbc:h2:file:///C:/PECImageSearchDB/
> > > PECImageSearchDB;TRACE_LEVEL_FILE=0;TRACE_LEVEL_SYSTEM_OUT=0");
>
> > > I get the following Exception:
> > > org.h2.jdbc.JdbcSQLException: General error:
> > > java.lang.RuntimeException: file utils error: C:\PECImageSearchDB
> > > \PECImageSearchDB does not start with C:\PECImageSearchDB/[50000-118]
>
> > Not sure if it's this, but why do you have three slashes before your
> > file path? Shouldn't it be just like so:
>
> > DriverManager.getConnection ("jdbc:h2:file:C:/PECImageSearchDB/
> > PECImageSearchDB;TRACE_LEVEL_FILE=0;TRACE_LEVEL_SYSTEM_OUT=0");
>
> > Best Regards,
> > Joonas
>
> I forget where I came up with the three slashes.  I think I read it
> somewhere.  I'll try it with just one and see what happens.
>
> BTW, I moved my database back to the original networked PC and changed
> my getConnection() call appropriately and have the same problem.

I tried changing file three slashes to one and got the same results.

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

Reply via email to