Applies to: MSSQL driver, a multi-DLL app, client on Windows 7 64-bit, SQL Server 2008 R2 on a Windows 7 32-bit box, as reported in 2011.
Problem
A plain test app with a multi-DLL layout, connecting in the data DLL, hung on a Windows 7 64-bit client and finally timed out with an S1T00 "login timeout expired" error. The same server worked from XP and Vista clients and from a single EXE on the same machine. SQL Native Client drivers, a disabled firewall and tuning tricks changed nothing. Moving the connection from the DLL into the main EXE also worked.
Solution
- Change the connection string to use the IP address of the server instead of its name.
- The advice came from a Clarion 6 newsgroup post of Nov 2010 and read as a name-resolution problem, "even on the local machine". One poster used it with the connection made through FM3 in the data DLL.
- The original poster answered "That's it!!!".
Caveats
- A poster with a production multi-DLL app on Windows 7 64-bit and SQL Server 2005 connected without trouble, so the name problem is not general.
- A separate freeze at ADD was reported on C7.2 (build 7653) with a foreign key between a parent and a child table updated by different threads; removing the key, or LOGOUT and COMMIT, avoided it. The thread did not tie it to this one.
- The thread did not find why name resolution failed on those machines.
Today (2026)
Using an address in place of a name remains a quick test for a connection that hangs (not re-tested). Check DNS or hosts file entries if the name matters.
Sources: Geoff T. (Mar 2011, the question), John C., Edmond S., PT O., Helgard S. (Mar to Apr 2011) in softvelocity.clarion.databasedrivers.