Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ODBC connection fails

Posted on 2014-02-02
4
Medium Priority
?
518 Views
Last Modified: 2014-02-11
Hi,

I am having trouble with an ODBC connection to my front-end.

We receive orders on Excel spreadsheets, which my code imports to a SQL Server back-end.

The Excel code then opens an Access front-end which has ODBC links to the SQL tables but also to our accounting package (Sage).  This front-end presents the order details to the user for them to check over.  We use the link to Sage to check the customer's credit rating before completing the order.

The ODBC link to Sage was set-up using a DSN called "SageLink".

The link to Sage sometimes fails - "ODBC error - SageLink failed", but if we keep re-trying it eventually connects.

I have tried to debug this today and found:
- Opening the table directly failed
- Refreshing the link failed
- Trying to recreate the link failed
- When I closed the database and re-opened it worked first-time


Most of the time the SageLink works perfectly, so can anyone suggest what I should do to prevent this failure.

This is driving my users nuts, so any help would be really appreciated.

LJM
0
Comment
Question by:LJKMartin
  • 2
4 Comments
 
LVL 3

Assisted Solution

by:bc10
bc10 earned 300 total points
ID: 39828401
I had a similar problem with Sage.  There was a new version of the ODBC driver available which solved the problem. Have you checked with Sage for an updated driver?
0
 
LVL 40

Assisted Solution

by:PatHartman
PatHartman earned 300 total points
ID: 39828651
See if you can get your IT support to test the user's network connection.  If he is the only one having a problem, it is most likely a network issue.
0
 

Accepted Solution

by:
LJKMartin earned 0 total points
ID: 39841269
Thank-you Gents,

It was using the latest driver and everyone was having the problem.

I got a different IT support guy to look into it and he found that the wrong version of the DSN was being used, and also he had to update some permissions.

Thanks again for your advice.

LJM
0
 

Author Closing Comment

by:LJKMartin
ID: 39849703
The problem was fixed by a colleague
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question