ODBC Call Failed

laughingdevil

New Member
Joined
Aug 5, 2011
Messages
40
Hi, hopefully someone can help me.

I'm developing a front end in Access 2002 (SP3) for a SQL Server 2008 DB.

I have a link table in access that links to a view in SQL Server.

When opening the link table the data in it is displayed fine.

I have a query which then uses this link table, in effect to filter by a "log_id" in effect the number assigned to the site on data import. These are contained in the view and if I open the link table and filter the list the ones I'm looking for are there.

However using this very basic query seems to take an age, and more often than not result in this error message.

Anyone got any ideas? I've checked a few of the MS KB and internet forumns and not found anything that seems to apply.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Check to see if any of the fields in the table (within SQL Server) are set to the datatype of

varChar(Max)

I've had issues with that as well. So, a quick change to something like:
varChar(10000)
that would be reasonable for the field, tends to solve that issue. There are also some issues sometimes with Null fields and the use of the Bit datatype as well.
 
Upvote 0
Thanks for that, no big varchars but some nulls, I did a bit of indexing on the key fields that most of my searches are based on, has vastly improved performance from 2:30 for a query to <1 sec.

Didn't see indexing as a response on any other MB /KB I checked but defo worth it IMO.
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,142
Members
452,892
Latest member
JUSTOUTOFMYREACH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top