Hi,
Again, please read the documentation. Then try simple examples first
(using the documentation), and then, once this works, do more complex
stuff. Be very careful with the syntax, specially in database URLs.
> Seems to me that my second app tries to start the server, but
> obviously can't since it's already there. What am i doing wrong?
Obviously, your application tried to start the server twice.
> jdbc:h2://localhost/~/test
I guess you wanted to use
jdbc:h2:tcp://localhost/~/test. Not
jdbc:h2:tcp//localhost/~/test and not
jdbc:h2:tcp//localhost///C/test or anything like that.
> Server server =
> Server.createTcpServer("jdbc:h2://localhost/~/test","sa","").start();
Funny idea :-)
> Connection conn = DriverManager.getConnection("jdbc:h2:tcp//localhost//
C:/Documents and Settings/Ruben/test", "sa", "");
Better, but not quite. The syntax is wrong. Try:
Connection conn =
DriverManager.getConnection("jdbc:h2:tcp://localhost/C:/Documents and
Settings/Ruben/test", "sa", "");
Regards,
Thomas
--
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.