D
David Joseph Bonnici
Hi, I am writing an app in VB. I need SQL and so I am using Jet 4.0
In short, I am having trouble with an SQL query that involves data of
type BINARY in the WHERE statement.
Here's a resume. To show you my point pls download the small sample
database I have created in MSACCESS from
http://www.geocities.com/netspiri/db1.mdb
I have first created a small table named [sample_table] with the
following fields.
names of type text (50)
id of type longInteger
description of type text (50)
I have fired an alter statement to change the names data type to
binary, so as to able to do case sensistive queries.
The alter statement is the following
ALTER TABLE sample_table ALTER COLUMN names BINARY (100);
and till now its fine.
When I fire the query
SELECT [sample_table].* INTO [result] FROM [sample_table] WHERE
(names='MARY');
nothing is returned, and this is getting me really mad.
When then in SQL view I fire the query
SELECT sample_table.* INTO result FROM sample_table WHERE ([names]
LIKE 'MARY');
the function works. When I try to execute it in VB it however does not
work.
Has someone ever encountered this? Can someone help me? All sorts of
comments are appreciated.
Many Thanks and
Kind Regards
David
In short, I am having trouble with an SQL query that involves data of
type BINARY in the WHERE statement.
Here's a resume. To show you my point pls download the small sample
database I have created in MSACCESS from
http://www.geocities.com/netspiri/db1.mdb
I have first created a small table named [sample_table] with the
following fields.
names of type text (50)
id of type longInteger
description of type text (50)
I have fired an alter statement to change the names data type to
binary, so as to able to do case sensistive queries.
The alter statement is the following
ALTER TABLE sample_table ALTER COLUMN names BINARY (100);
and till now its fine.
When I fire the query
SELECT [sample_table].* INTO [result] FROM [sample_table] WHERE
(names='MARY');
nothing is returned, and this is getting me really mad.
When then in SQL view I fire the query
SELECT sample_table.* INTO result FROM sample_table WHERE ([names]
LIKE 'MARY');
the function works. When I try to execute it in VB it however does not
work.
Has someone ever encountered this? Can someone help me? All sorts of
comments are appreciated.
Many Thanks and
Kind Regards
David