X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id DD3DFD1B506 for ; Wed, 10 Sep 2003 16:37:10 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 26418-04 for ; Wed, 10 Sep 2003 13:37:00 -0300 (ADT) Received: from oncdz002.onc.michelin.com (unknown [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id 54A26D1B53F for ; Wed, 10 Sep 2003 13:36:58 -0300 (ADT) Received: from ONCMH1.ONC.MICHELIN.COM (unverified) by oncdz002.onc.michelin.com (Content Technologies SMTPRS 4.3.6) with ESMTP id for ; Wed, 10 Sep 2003 12:31:38 -0400 Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Wed, 10 Sep 2003 12:34:47 -0400 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id HL0BHL00.A7V for ; Wed, 10 Sep 2003 12:36:57 -0400 Received: from us.michelin.com (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Wed, 10 Sep 2003 12:36:57 -0400 Message-Id: <3F5F5324.D2447052@us.michelin.com> Date: Wed, 10 Sep 2003 12:36:52 -0400 From: "Greg Campbell" X-Mailer: Mozilla 4.77 [en]C-CCK-MCD (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: ADO Case Sensitivity in Win2000/XP Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.3 tagged_above=0.0 required=5.0 tests=BAYES_20, RCVD_IN_OSIRUSOFT_COM, RCVD_IN_RFCI, USER_AGENT_MOZILLA_XM, WEIRD_QUOTING X-Spam-Level: * X-Archive-Number: 200309/36 X-Sequence-Number: 3234 I am converting ASP web apps backend from MySQL to PostGreSQL. I want the SQL to be as generic as possible. The tables (relations) and columns (fields) are mixed case as seen from the psql command line on my PostGreSQL server (RH Linux) and when viewed in Access as link tables. When I use ADO for a web site to execute a simple query like "SELECT EmployeeID FROM Employees" the query fails with Relation "employees" does not exist. I find that using double-quote forced lower case in the sql statement works e.g. "SELECT ""employeeid"" FROM ""employees"" " The backend is mixed case. The client string was mixed cased. I could take the client string and execute it in psql on the backend server. The ODBC driver is seeing lower case and I have to double-quote the lower case in the string to make it work. Lower-casing and double-quoting all tables names and field name is the kind of backend specific sql changing I wanted to avoid. Is there a setting on the ODBC Driver for Windows that will recognize the mixed case properly? *************************************************************** This email and all files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are receiving this email in error please notify the system manager. This footnote also confirms that this message has been swept for the presence of computer viruses. ***************************************************************