Applies to: every Clarion version with the MSSQL or ODBC driver; SQL Server Express 2005 and later.
Problem
The owner string ipaddress\sqlexpress,user,password works inside the office. From the internet the same string times out, although the server's address is reachable.
Solution
- A named instance (
\sqlexpress) is resolved through the SQL Server Browser service on UDP 1434. Across a router or a locked-down network that service is unreachable or disabled, so name the port instead of the instance. - Give the instance a fixed TCP port: SQL Server Configuration Manager, the instance's TCP/IP properties, IPAll, TCP Port; restart the service.
- Put the port in the owner string, with quotes around the address and port because of the comma:
GLO:Owner = '"111.11.111.111,1150",DATABASE,user,password' - Open that port on the Windows firewall of the server and on the router. The original poster's blocker was the DSL router.
Caveats
- Avoid 1433 as the exposed port; scanners try it first. Avoid the
saaccount in a connection string. - A named instance can work from outside when the Browser service is reachable, but it is the first thing a network administrator switches off.
Today (2026)
Unchanged. The Configuration Manager step and the quoted "address,port" form are the same on current SQL Server versions.
Sources: Don G. (May 2009, the question), Loren L., Mark R., Tim M. (May 2009) in softvelocity.clarion.databasedrivers.