ODBC-call failed.

G

Guest

I am running a query in access XP, the database is link a table in SQL server
DB, the query is simple "group by" query as following:

SELECT dbo_NF.MNFTIMC
FROM dbo_NF
GROUP BY dbo_NF.MNFTIMC;

dbo_NF is link table in SQL server database

Everytime I ran this query, I got following error message:

ODBC-call failed.
[Microsofet][ODBC SQL Server Drive]Timeout expired (#0)

I can't figure out why? Can anyone help me to solve this question? Thanks
 
J

Jeff Boyce

If you take the error message fairly literally, the SQL/query is taking too
long and the server is timing it out.

How many rows are in this table?

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
J

Jeff Boyce

I'll also point out that if the SQL server table is not indexed on the field
you are GROUPing BY, you are asking the server to do a lot of work
(depending on size of the table).

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
G

Guest

Thanks for the response. This is huge table contain 26M records. But the
questions is when I did the similar query for another field, I got result
without the error message. Any reason?

Jeff Boyce said:
If you take the error message fairly literally, the SQL/query is taking too
long and the server is timing it out.

How many rows are in this table?

Regards

Jeff Boyce
Microsoft Office/Access MVP


SW said:
I am running a query in access XP, the database is link a table in SQL
server
DB, the query is simple "group by" query as following:

SELECT dbo_NF.MNFTIMC
FROM dbo_NF
GROUP BY dbo_NF.MNFTIMC;

dbo_NF is link table in SQL server database

Everytime I ran this query, I got following error message:

ODBC-call failed.
[Microsofet][ODBC SQL Server Drive]Timeout expired (#0)

I can't figure out why? Can anyone help me to solve this question? Thanks
 
J

Jeff Boyce

Nothing right off the top. Is the "other field" indexed in the SQL Server
data?

Regards

Jeff Boyce
Microsoft Office/Access MVP


SW said:
Thanks for the response. This is huge table contain 26M records. But the
questions is when I did the similar query for another field, I got result
without the error message. Any reason?

Jeff Boyce said:
If you take the error message fairly literally, the SQL/query is taking
too
long and the server is timing it out.

How many rows are in this table?

Regards

Jeff Boyce
Microsoft Office/Access MVP


SW said:
I am running a query in access XP, the database is link a table in SQL
server
DB, the query is simple "group by" query as following:

SELECT dbo_NF.MNFTIMC
FROM dbo_NF
GROUP BY dbo_NF.MNFTIMC;

dbo_NF is link table in SQL server database

Everytime I ran this query, I got following error message:

ODBC-call failed.
[Microsofet][ODBC SQL Server Drive]Timeout expired (#0)

I can't figure out why? Can anyone help me to solve this question?
Thanks
 
G

Guest

A far as I can check, none of the field been indexed.

Jeff Boyce said:
Nothing right off the top. Is the "other field" indexed in the SQL Server
data?

Regards

Jeff Boyce
Microsoft Office/Access MVP


SW said:
Thanks for the response. This is huge table contain 26M records. But the
questions is when I did the similar query for another field, I got result
without the error message. Any reason?

Jeff Boyce said:
If you take the error message fairly literally, the SQL/query is taking
too
long and the server is timing it out.

How many rows are in this table?

Regards

Jeff Boyce
Microsoft Office/Access MVP


I am running a query in access XP, the database is link a table in SQL
server
DB, the query is simple "group by" query as following:

SELECT dbo_NF.MNFTIMC
FROM dbo_NF
GROUP BY dbo_NF.MNFTIMC;

dbo_NF is link table in SQL server database

Everytime I ran this query, I got following error message:

ODBC-call failed.
[Microsofet][ODBC SQL Server Drive]Timeout expired (#0)

I can't figure out why? Can anyone help me to solve this question?
Thanks
 

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

Top