From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Johan van der Merwe <johan(at)bnrel(dot)co(dot)za> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Relation "tablename" does not exist |
Date: | 2006-06-15 07:06:14 |
Message-ID: | 449106E6.3060505@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Johan van der Merwe wrote:
> I have posted this before without receiving replies
Can't see it in the archives. Were you subscribed?
> My code is as follows:
>
> Public dbRemote As New Connection
> Public rsData As New Recordset
>
> dbRemote.Properties("Data Source").Value = "DSM"
> dbRemote.Properties("Initial Catalog").Value = "BCM_DSM"
> dbRemote.Properties("User ID").Value = "johan"
> dbRemote.Properties("Password").Value = "johan"
> dbRemote.Open
>
> rsData.Open "tblSuburb", dbRemote, , , adCmdTable
>
>
> I receive the error "Relation "tblSuburb" does not exist"
Either you created the table quoted (thus preserving its case) and you
are accessing it unquoted (so it's folded to lower-case) or the other
way around. It's how PostgreSQL provides case-insensitive table-names.
So:
CREATE "TaBlE1" ...
SELECT * FROM "TaBlE1" (works)
SELECT * FROM table1 (fails)
CREATE TaBlE2 ...
SELECT * FROM "TaBlE2" (works)
SELECT * FROM table2 (works)
SELECT * FROM TABLE2 (works)
HTH
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2006-06-15 07:08:44 | Re: how pg_hba.conf |
Previous Message | Johan van der Merwe | 2006-06-15 06:52:24 | Relation "tablename" does not exist |