ODBC--Call failed.

C

cluckers

I am running a query. One of the field's I am filtering. If I use a "Not
Like" criteria the query runs fine, takes a second. However, if a use a
"Like" criteria I get the:

ODBC --call failed.
[Oracle][ODBC][Ora]ORA-01013:user requested cancel of current operation
(#1013)


Why would it matter if I use "Like" vs "Not Like"? How can you fix?

thank you
 
L

Lynn Trapp

Obviously, looking at the error, the problem is not with the LIKE or NOT LIKE
operators. Rather, it has something to do with your connection to the
database.
 
S

Sylvain Lafontaine

Well, with the Not Like, you will return all the other records in the table.
If this is a big table or a table with many other peoples querying it, it's
quite possible that you get kicked out because of some locking issues or
timing-out.

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Blog/web site: http://coding-paparazzi.sylvainlafontaine.com
Independent consultant and remote programming for Access and SQL-Server
(French)
 
C

cluckers

The database of information is huge. I guess my questions is why does it
matter if you are using Like or Not Like. Doesn't it still have to query all
the data to get the results?

Sylvain Lafontaine said:
Well, with the Not Like, you will return all the other records in the table.
If this is a big table or a table with many other peoples querying it, it's
quite possible that you get kicked out because of some locking issues or
timing-out.

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Blog/web site: http://coding-paparazzi.sylvainlafontaine.com
Independent consultant and remote programming for Access and SQL-Server
(French)


cluckers said:
I am running a query. One of the field's I am filtering. If I use a "Not
Like" criteria the query runs fine, takes a second. However, if a use a
"Like" criteria I get the:

ODBC --call failed.
[Oracle][ODBC][Ora]ORA-01013:user requested cancel of current operation
(#1013)


Why would it matter if I use "Like" vs "Not Like"? How can you fix?

thank you


.
 
H

Hugh Williams

Hi

Why not create an ODBC trace (http://support.microsoft.com/kb/274551) to see
which ODBC call is actually failing which may provide additional information
as to the cause.

It might also be worth trying another Oracle ODBC Driver in case it is the
form of query being made by the current ODBC Driver that is not optimized and
causing the query to time out or cancel.

You can try the OpenLink ODBC Driver for Oracle which can be downloaded for
evaluation from:

http://download.openlinksw.com

Hope his helps

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
Twitter: http://twitter.com/OpenLink






cluckers said:
The database of information is huge. I guess my questions is why does it
matter if you are using Like or Not Like. Doesn't it still have to query all
the data to get the results?

Sylvain Lafontaine said:
Well, with the Not Like, you will return all the other records in the table.
If this is a big table or a table with many other peoples querying it, it's
quite possible that you get kicked out because of some locking issues or
timing-out.

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Blog/web site: http://coding-paparazzi.sylvainlafontaine.com
Independent consultant and remote programming for Access and SQL-Server
(French)


cluckers said:
I am running a query. One of the field's I am filtering. If I use a "Not
Like" criteria the query runs fine, takes a second. However, if a use a
"Like" criteria I get the:

ODBC --call failed.
[Oracle][ODBC][Ora]ORA-01013:user requested cancel of current operation
(#1013)


Why would it matter if I use "Like" vs "Not Like"? How can you fix?

thank you


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

error ORA-01013 2
Pass-Through Query Error 1
Pass Through Query Make Table 3
SQL Pass-Through Query to Oracle fails 3
SQL Help Please 1
ODBC - Call failed 1
ODBC 1
update query ODBC--call failed 3

Top