VB6, ADO returns EOF via ODBC but has records in PSQL

VB6, ADO returns EOF via ODBC but has records in PSQL

am 19.10.2006 19:00:25 von Erika Marlow

This is a multi-part message in MIME format.

------_=_NextPart_001_01C6F3A0.129D9BF9
Content-Type: multipart/alternative;
boundary="----_=_NextPart_002_01C6F3A0.129D9BF9"


------_=_NextPart_002_01C6F3A0.129D9BF9
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I'm trying to find the set of records that are not in a comma delimited
list using an SQL statement like:
=20
SELECT name FROM construction WHERE name NOT IN ('a1 ', 'a2
', '') ORDER BY name;
=20
The values in the field are padded with spaces and I have to keep them
that way for data integrity between software systems. If I send this
statement to the PostgreSQL database with ADO via the ODBC driver
(adoRs.Open sql, dbconn, adOpenStatic, adLockOptimistic) I don't get any
records. However, if I execute the same statement in psql directly, I
get nineteen rows.
=20
Is there a property setting or something that I'm missing when using the
driver?
=20
Thanks,
=20
Erika Marlow___________________
Senior Software Specialist
National Information Solutions Cooperative
One Innovation Circle
Lake St. Louis, MO 63367
**Email: erika.marlow@nisc.coop =20
**Phone: 866.WWW.NISC (866.999.6472)
**Direct: 636.755.2519 =09
=20

------_=_NextPart_002_01C6F3A0.129D9BF9
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable



charset=3Dus-ascii">


I'm =
trying to find=20
the set of records that are not in a comma delimited list using an SQL =
statement=20
like:

size=3D2> 

SELECT =
name FROM=20
construction WHERE name NOT IN =
('a1        ',=20
'a2        ', '') ORDER BY=20
name;

size=3D2> 

The =
values in the=20
field are padded with spaces and I have to keep them that way for data =
integrity=20
between software systems.  If I send this statement to the =
PostgreSQL=20
database with ADO via the ODBC driver (adoRs.Open sql, dbconn, =
adOpenStatic,=20
adLockOptimistic) I don't get any records.  However, if I execute =
the same=20
statement in psql directly, I get nineteen rows.

size=3D2> 

Is =
there a property=20
setting or something that I'm missing when using the =
driver?

size=3D2> 

size=3D2>Thanks,

 







title=3D"NISC Homepage - www.nisc.coop" =
src=3D"cid:163465316@19102006-36C7"=20
border=3D0>
Erika=20
Marlow
___________________
size=3D1>Senior=20
Software Specialist
National Information Solutions =
Cooperative
One=20
Innovation Circle
Lake St. Louis, MO 63367
color=3D#e70042> face=3Dwingdings>+ Email: href=3D"mailto:erika.marlow@nisc.coop" color=3D"#999999"=20
erika.marlow@nisc.coop
color=3D#e70042> face=3Dwingdings>( Phone: color=3D#999999>866.WWW.NISC=20
(866.999.6472)
face=3Dwingdings>( Direct: color=3D#999999>636.755.2519
=20
=
>

 


------_=_NextPart_002_01C6F3A0.129D9BF9--

------_=_NextPart_001_01C6F3A0.129D9BF9
Content-Type: image/gif;
name="nisc.gif"
Content-Transfer-Encoding: base64
Content-ID: <163465316@19102006-36C7>
Content-Description: nisc.gif
Content-Location: nisc.gif

R0lGODlhfgBbAOYAANmvrMU1TDAwLMlFU9zb28zLy769vLS0tJ1rb/DOx6kC OfT09PHx8Z2dne/v
7+ezqcPDwpKSkujBu5ACMLwDQaKioklJRIuLioGBgODg4KuqqoaFfE84N3V0 dGJkWvv7+1MCGHJy
avr6+ubm5nt7e2tra+np6ZOSiWJiYtXV1ayMi9JoZ3cCJlxcW/j4+NDQ0KOi mltcU1RUVOSlmm9R
Ubazrdh6dlNTTd2LgkVDPm1tY52blNjGxMF5guGaj/fp535+dNuDfMMkRqqp pYuKgN6TiMxUW7q5
uNmUlV5GRUADErCvrcaal7ZCXfn089VxbL8JQ14rMdWno+DQzY+PjvLk4vjx 78jIx/Pc2KempBwc
GZeXlc5gZIaGhkQgIqMwTXkcMn5hYSYnI9jU1OPj4/39/WEDHfv4+Ozr6tPS 0tjY2MCWjv///9Fv
ek5OSv7+/mZoYV9gVldYUzs8Nnd3bXcxPff3982hoOrq6MuJiuzs7KURQNfW 0vn5+d+goMAURSH5
BAAAAAAALAAAAAB+AFsAAAf/gGyCg4SFhoeIiYVvjB8fIn0udgsLDJaXDpkO l5aUC3YufY4fjG+K
p6ipqquJpY59VlUJEg8zPkVB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