AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Like Query not working with MS Access using JDBC-ODBC

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
jawad bokhari via JavaKB.
Guest





PostPosted: Fri Feb 11, 2005 8:48 pm    Post subject: Like Query not working with MS Access using JDBC-ODBC Reply with quote



Hi,

I am having a strange problem here.
Following is the query that I am trying to execute from my java program
using JDBC-ODBC bridge.

SELECT DestId FROM tblRates WHERE '213424' like Perfix+'*'

Query runs with no errors but doesn't give me any result :(

But it return proper results when executed from MS Access Query builder.

I am not sure if it's the problem of the odbc bridge I am using or if it's
something else.

Thanks,
Jawad

--
Message posted via http://www.javakb.com
Back to top
Lee Fesperman
Guest





PostPosted: Fri Feb 11, 2005 10:19 pm    Post subject: Re: Like Query not working with MS Access using JDBC-ODBC Reply with quote



jawad bokhari via JavaKB.com wrote:
Quote:

Hi,

I am having a strange problem here.
Following is the query that I am trying to execute from my java program
using JDBC-ODBC bridge.

SELECT DestId FROM tblRates WHERE '213424' like Perfix+'*'

Query runs with no errors but doesn't give me any result :(

But it return proper results when executed from MS Access Query builder.

I am not sure if it's the problem of the odbc bridge I am using or if it's
something else.

Have you tried '%' as the wildcard instead of '*'? I think Access requires the standard
form when going through its ODBC driver.

--
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.