Re: Postgres and JDBC?!

From: Thomas Kellerer (NNGNVRDSJEBN_at_spammotel.com)
Date: 01/27/05

  • Next message: Wiseguy: "Re: Postgres and JDBC?!"
    Date: Thu, 27 Jan 2005 17:24:29 +0100
    
    

    On 27.01.2005 16:58 tem2 wrote:

    >
    > import java.sql.*;
    >
    > public class Connect
    > {
    > Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    >
    > String url = "jdbc:odbc:PostgreSQL";
    > Connection con = DriverManager.getConnection(penguin.kent.ac.uk,
    > "myusername", "mypassword");
    >
    > }
    >

    At first glance I would say:

    Connection con = DriverManager.getConnection(url,"myusername", "mypassword");

    getConnection() needs a JDBC URL, not a server name.

    Thomas


  • Next message: Wiseguy: "Re: Postgres and JDBC?!"

    Relevant Pages

    • Re: Postgres and JDBC?!
      ... getConnection() needs a JDBC URL, not a server name. ... Thomas ...
      (comp.lang.java.help)
    • Re: unable to publish to local IIS
      ... Microsoft MVP - FrontPage ... "Thomas A. Rowe" wrote: ... Since you have a server, then is better to open and work ...
      (microsoft.public.frontpage.extensions.windowsnt)
    • Re: FP Search function
      ... Microsoft MVP - FrontPage ... "Thomas A. Rowe" wrote: ... them implement Search on a Linux/FP server? ...
      (microsoft.public.frontpage.programming)
    • Re: Multiple FP sites with same rootfolder
      ... "Thomas A. Rowe" wrote in message ... Microsoft MVP - FrontPage ... > I have a problem with a setup of Frontpage Server Extensions on a> Windows ...
      (microsoft.public.frontpage.extensions.windowsnt)
    • Re: unable to publish to local IIS
      ... Microsoft MVP - FrontPage ... "Thomas A. Rowe" wrote: ... if I go to the fp Server Extensions Console ...
      (microsoft.public.frontpage.extensions.windowsnt)