2

I have problems connecting computers running Windows 7 to a database SQL Server 2014 Express intermittently.

It happens that, intermittently, I can not connect to the database that is on a Windows 2008 R2 server.

If I restart the computer, works again, but only for a few minutes, sometimes hours.

The Firewall of my computer is turned off. Windows Firewall is turned off.

CONFIGURATION:

  • The server is Windows Server 2008 R2 Foundation
  • Firewall Ports TCP / IP and UDP 1434 1433 allowed

SQL Server Express:

  • Unlimited Connections
  • Allows remote connections
  • Timeout remotely query: 600 seconds

Machines with Windows XP have no problem with this issue.

Paul White
95.3k30 gold badges439 silver badges689 bronze badges
asked Jul 28, 2015 at 14:57
0

2 Answers 2

1

Finally, it seems to have turned the problem: an IP in the secondary DNS configuration caused the problem. Removing the IP, everything works correctly again.

answered Aug 31, 2015 at 10:31
0
-1

Make sure your power settings are not set to hibernate or sleep on the client PC's (Check ALL power option settings, place a value of '0' for 'Never'). Typically if the machine goes to sleep, the ODBC connection to the DB gets lost. That is why 'restarting' will work, and the time frame varies from a few minutes to a few hours.

Also, make sure you have both ODBC 32 bit and 64 bit configured for your DB.

Typically located on... c:\windows\syswow64\odbcad32.exe but easily accessible in Control Panel under Administrative tools.

I hope this helps you solve your issue. It certainly could be a cause of the issue described, feel free to add on to this issue if my solution does not resolve your issue.

answered Jul 28, 2015 at 15:16
4
  • The power settings are in not hibernate nor sleep status. Commented Jul 29, 2015 at 7:24
  • ODBC Drivers: 32 and 64 bits installed. Commented Jul 29, 2015 at 7:25
  • If I keep an application running constantly, the problem does not appear. I can run other applications connecting databases without error. May be any relation with number of users/threads? Commented Aug 25, 2015 at 9:44
  • I'm sorry, the above is not correct. I have found that also fails even if other programs connected to the bd working properly. Commented Aug 25, 2015 at 10:42

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.