Solved

how to solve time out connection to SQL server from access VBA

Posted on 2014-01-17
4
1,299 Views
Last Modified: 2014-01-30
I am getting this error while trying to connect and link in tables from Access vba to SQL Server.
Connection Failed:
SQLState: '01000'
SQL Server Error: 53
[Microsoft][ODBC SQL Server Driver][DBNETLIB][ConnectionOpen(Connect()).
Connection Failed:
SQLState: '08001'
SQL Server Error: 17
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not
exist or access is denied.
I found solution on the link below, but i am not sure how to implement it.

stackoverflow.com/questions/15120143/handling-a-sql-server-login-error-msg-with-vba/15277960#15277960


Any help would be apreciated.
0
Comment
Question by:maximyshka
[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
4 Comments
 
LVL 27

Accepted Solution

by:
Zberteoc earned 250 total points
ID: 39789459
That is not a timeout error but a permission one as it clearly states:

"[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not
exist or access is denied."

You either miss-typed something or you need to open remote access to that SQL server and/or the ports.
0
 
LVL 12

Assisted Solution

by:Dr. Thomas Henkelmann
Dr. Thomas Henkelmann earned 250 total points
ID: 39792052
Agree with Zberteoc, this is not a time out but you either
- have used the wrong name for the SQL Server in your connection string (check FQDN and if you can ping this name)
- or have used a wrong username and password in your connection. or your Windows account is not able to connect if you use SSPI for security
- or the SQL server doesn't allow external connections for TCP or Named Pipes (check with your DBA)
0
 
LVL 24

Expert Comment

by:Bitsqueezer
ID: 39799201
Hi,

another possible error is if you do not use the FQDN (full qualified domain name) of the server. If you are working in a different domain and you only use the short name of the server itself then it can happen that the server name cannot be resolved (depending on the quality of your local DNS).
So instead of "YourServer" use something like "YourServer.domain.domain.com". If you have a named instance, add that at the end like: "YourServer.domain.domain.com\MyInstance"

Cheers,

Christian
0
 

Author Comment

by:maximyshka
ID: 39821569
I actualy misspelled rthe server name. We have very long server names so I wrote o insteadof 0 :-(
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
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 …

617 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