True, thanks for that. I am still not getting it though :(
Must i list the location of the database on my hardrive? Because if
so, I am not sure how to know where to find it (tried searching my
computer...)
Also, my server and client application would be on the same amchine,
do i still need my IP address, or can i use something like:

Connection conn = DriverManager.getConnection("jdbc:h2:tcp//localhost//
C:/Documents and Settings/Ruben/test", "sa", "");

(found a file called test.h2 there)



Also, surely this:
Server server = Server.createTcpServer().start();
...
server.stop();

Doesn't work properly, how should i point out which database the
server is for?



Sorry, i know i must sound a bit stupid :(

Thanks again


On Jan 22, 1:32 pm, Kerry Sainsbury <[email protected]> wrote:
> Your client app isn't using the correct connection string. Take another look
> at Ewald's example -- especially the "tcp" bit :-)
>
> > conn = DriverManager.getConnection("jdbc:h2:tcp://" +
> >                     ipAddress +
> >                     "//myappfolder/db/myappdatabasename", userName,
> > pwdString);
>
> Cheers
> Kerry
>
>
>
> On Sat, Jan 23, 2010 at 5:40 AM, frubeng <[email protected]> wrote:
> > I've also tried with the line
>
> > Server server = Server.createTcpServer("jdbc:h2://localhost/~/
> > test","sa","").start();
>
> > but i get the same result. :(
>
> > --
> > 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]<h2-database%2bunsubscr...@googlegr­oups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/h2-database?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
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