🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.databases.visual-dbase
Article #22

dbase odbc SQl connecion problem

#22
From: Chris McKeever
Date: Mon, 22 Jul 2002 03:35
25 lines
1943 bytes
sorry for the cross post, but I am at wits end here..

I am connecting to a dbase file (not sure what version) through a VB
obdc connection.  Connecting and going through the records works
wonderfully, until I through in a WHERE clause (below is the SQL).

The field in question dtmodified is numeric (N).  This worked at one
point, and just seemed to flake out on me recently.  The field itself
is a time in seconds from the EPOCH.  Is there something with the type
conversion that I may be missing?

    sql = "select dtmodified FROM classa" _
            & " where (dtmodified > 1024617295)"

Without the where, I get all the rows, once I do the where it drops to
zero no matter what value I throw in there.

Any help would be greatly appreciated.

PS - I tried to cast the where as CAsT(1024617295 AS NUMERIC) by that
screws things up more than anything else.
\
Thanks
Chris McKeever
cgmckeever@yahoo.com
Technical Details
Message-ID: <1a78c305.0207211935.2533b38c@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 116288,f11cea0e761643be,start
X-Google-Attributes: gid116288,public
X-Google-Thread: 1162a5,f11cea0e761643be,start
X-Google-Attributes: gid1162a5,public
X-Google-Thread: 1114bb,f11cea0e761643be,start
X-Google-Attributes: gid1114bb,public
X-Google-ArrivalTime: 2002-07-21 20:35:11 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: cgmckeever@yahoo.com (Chris McKeever)
Newsgroups: comp.databases.visual-dbase,comp.databases.xbase.misc,dbase.sql
Subject: dbase odbc SQl connecion problem
Date: 21 Jul 2002 20:35:11 -0700
Organization: http://groups.google.com/
Lines: 25
Message-ID: <1a78c305.0207211935.2533b38c@posting.google.com>
NNTP-Posting-Host: 64.81.136.153
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1027308911 18112 127.0.0.1 (22 Jul 2002 03:35:11 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 22 Jul 2002 03:35:11 GMT