Solved

ODBC -- connection to SQL Server failed

Posted on 2004-04-25
6
2,786 Views
Last Modified: 2012-06-27
I'm helping a company upgrade from an all Access database to an Access 2000 frontend/SQL 2000 backend solution.  I've got a situation that I haven't seen before.  

Everything was running pretty smoothly.  Then a couple of days ago a user reported that one of her Access queries returned the following error:
"ODBC -- connection to SQL Server failed".  Seems like a simple connection issue, however it doesn't happen all the time.  I verified that when Access is first opened, the query will throw the error listed above.  If I then open any other query or table, and then try the troubled query, it will work and stay working for the rest of the time I have Access open, only to throw the error again once Access is restarted.

The query in question is calling only one table, it's very basic.  

Does anybody have any idea what could be causing the problem described above?
Thank you,
--Will
0
Comment
Question by:will_rein99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 54

Accepted Solution

by:
nico5038 earned 100 total points
ID: 10914187
Did you check upon the ODBC timeout setting for the query, this is by default 60, but I often use 600.
Just openproperties when in the query's design.

Nic;o)
0
 
LVL 54

Expert Comment

by:nico5038
ID: 10914188
Did you check upon the ODBC timeout setting for the query, this is by default 60, but I often use 600.
Just openproperties when in the query's design.

Nic;o)
0
 
LVL 26

Assisted Solution

by:Alan Warren
Alan Warren earned 100 total points
ID: 10914476
Hi Will,

Is this an ADP front-end or MDB?
Is your connection using Integrated Security or SQL server login?

debug.print CurrentProject.Connection

Alan
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
LVL 18

Assisted Solution

by:Karen Falandays
Karen Falandays earned 50 total points
ID: 10931429
To add to Nico's point, I like to change timeout to 0 for NO limit, as this is the typical error message you will get when the server cannot respond quickly enough!
Karen
0
 

Author Comment

by:will_rein99
ID: 10931787
All,
  The one linked table the query was using needed to be relinked from scratch.  Refreshing the linked table did nothing but removing the table entirely and relinking worked.  I had to reapply the formatting done to the linked table.
  I'm splitting the points to the group for helping.
Thank you,
--Will
0
 
LVL 4

Expert Comment

by:AndyAmess
ID: 10948505
Will,

I know the question is closed but the error you got is one I had a couple of times if I Add a column to my Sybase table then the link does not seem to want to work as it doesn't match the backend. Is it possible that the one user had a link that had not been updated to fit to the back end changes.

Just a thought. No need to reply.

A. ;-)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

626 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