X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 825219FB257 for ; Wed, 2 Aug 2006 06:18:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 15150-03 for ; Wed, 2 Aug 2006 06:18:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by postgresql.org (Postfix) with ESMTP id 2D7E89FB256 for ; Wed, 2 Aug 2006 06:18:11 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id p77so598702nfc for ; Wed, 02 Aug 2006 02:18:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=tydo3YfKPPfK7YnTl85ioi3UVwnUcwnvFdUQ8uC/BRiXqGgY1Fok/+84n2Ng4PJv5jsWkVQ+i3EImfslwAd2S2VDUaKnFdqtx9o0Ogfn6f0s/0VLkrghZKHVXcvlgHnK0hFdooIiiA40ARs3L4AR0yVvZoUvmOesuygm2k/z8J0= Received: by 10.82.107.15 with SMTP id f15mr56823buc; Wed, 02 Aug 2006 02:18:06 -0700 (PDT) Received: by 10.82.114.2 with HTTP; Wed, 2 Aug 2006 02:18:06 -0700 (PDT) Message-ID: Date: Wed, 2 Aug 2006 10:18:06 +0100 From: "ben sewell" To: pgsql-odbc@postgresql.org Subject: Re: ODBC Connection failed after importing linked tables In-Reply-To: <44CF681C.3080604@commandprompt.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_373_27467399.1154510286249" References: <44CF681C.3080604@commandprompt.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.698 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/16 X-Sequence-Number: 7980 ------=_Part_373_27467399.1154510286249 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Joshua, thanks for the link. I'm not getting that error anymore, but now I'm getting a problem when I'm importing several tables with the error "the size of a field is too long". As far as I remember, the tables only compose of int4 fields, varchar fields and a text field. Text boxe's don't have a limit on the number of charecters they are stored as they are seen as a string. This leads me to believe that it's the varchar fields, since the highest number in the integer fields is 7759. Any ideas on what's going wrong? Any ideas what the maximum number of charecters is allowed for varchar fields? At the moment, I have specified the limit for number of charecters in the varchar fields. Cheers, Ben On 8/1/06, Joshua D. Drake wrote: > > ben sewell wrote: > > Hi, > > I'm running a postgresql 8.1 server on Windows 2002 Small Business > > Server. I > > am in the middle of a migration from an MS Access backend to a > PostgreSQL > > backend. The existing MS Access 2000 frontend will be used. I'm using > the > > pgSQL ODBC driver (latest) on Windows XP Pro SP2. > > You could try ODBCng: > > http://projects.commandprompt.com/public/odbcng > > Joshua D. Drake > > > > > > > I have using the linked table wizzard to link tables to the PostgreSQL, > > which had no problems and I setup the relationships on the front end. > > However, when I try to open the database, it is saying this error > message > > "ODBC--connection to '{PostgreSQL}10.0.0.2' failed". This is strange > > because > > I can ping the server and use telnet to connect to postgresql. I've done > a > > google search and this seems to be a problem that seems to happen to > MySQL > > databases. What I was wondering is, can anyone offer any solutions on > > how to > > solve this problem? > > > > Cheers, > > Ben > > > > > -- > > === The PostgreSQL Company: Command Prompt, Inc. === > Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 > Providing the most comprehensive PostgreSQL solutions since 1997 > http://www.commandprompt.com/ > > > ------=_Part_373_27467399.1154510286249 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi Joshua,
thanks for the link. I'm not getting that error anymore, but now I'm getting a problem when I'm importing several tables with the error "the size of a field is too long". As far as I remember, the tables only compose of int4 fields, varchar fields and a text field.
 
Text boxe's don't have a limit on the number of charecters they are stored as they are seen as a string. This leads me to believe that it's the varchar fields, since the highest number in the integer fields is 7759. Any ideas on what's going wrong? Any ideas what the maximum number of charecters is allowed for varchar fields? At the moment, I have specified the limit for number of charecters in the varchar fields.
 
Cheers,
Ben
 
On 8/1/06, Joshua D. Drake <jd@commandprompt.com> wrote:
ben sewell wrote:
> Hi,
> I'm running a postgresql 8.1 server on Windows 2002 Small Business
> Server. I
> am in the middle of a migration from an MS Access backend to a PostgreSQL
> backend. The existing MS Access 2000 frontend will be used. I'm using the
> pgSQL ODBC driver (latest) on Windows XP Pro SP2.

You could try ODBCng:

http://projects.commandprompt.com/public/odbcng

Joshua D. Drake



>
> I have using the linked table wizzard to link tables to the PostgreSQL,
> which had no problems and I setup the relationships on the front end.
> However, when I try to open the database, it is saying this error message
> "ODBC--connection to '{PostgreSQL}10.0.0.2' failed". This is strange
> because
> I can ping the server and use telnet to connect to postgresql. I've done a
> google search and this seems to be a problem that seems to happen to MySQL
> databases. What I was wondering is, can anyone offer any solutions on
> how to
> solve this problem?
>
> Cheers,
> Ben
>


--

   === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
   Providing the most comprehensive  PostgreSQL solutions since 1997
             http://www.commandprompt.com/



------=_Part_373_27467399.1154510286249--