Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Excel query of Postgress database - schema case problem..

Let me begin by saying that I am by no means an Excel expert, so please bear
with me.

Our users need to use excel to analyze data from a Postgresql database. I
have the PSQLODBC properly configured, and it works just fine using Access.
The PG tables we setup with UPPER case table and column names as per
application requirements.
Using Excel's Pivot Table functionality means defining the query in MS
Query. Selecting the ODBC Datasource in MS Query works ok, and properly
displays all the tables and columns. The necessary columns can then be
selected without problems. Viewing the generated SQL, the Select statement
also appears correct, however the problem is that the IDENTIFIERS are not
Quoted. (SELECT ECG_BOARDS.BASE_PRODUCT
FROM SCOTT.ECG_BOARDS ECG_BOARDS) By design, the PSQLODBC driver changes
unquoted names to lower case so when this is executed the error (schema
"scott" does not exist) is returned. I have attempted various quoting
syntax ('SCOTT'...."SCOTT"....`SCOTT`....$$SCOTT$$....) all without success.
Just as a point of reference, if I recreate the database with all lower case
names the query process works fine. Can anyone offer any useful
suggestions ?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I query my excel database. Chay Excel Discussion (Misc queries) 2 February 2nd 07 03:14 AM
XML case: automated export with dynamic schema AS_haasrode Excel Discussion (Misc queries) 0 September 1st 06 12:28 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 1 November 29th 05 01:44 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 09:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"