I've successfully tested a connection via PHP's odbc_connect() to a SQL Server 2005 Express database on a Windows Vista box using the following code:
$connect = odbc_connect("mssqllocal2", "", "");
// first arg is the System DSN that I configured on Windows
This connection works fine when executed from an instance of WAMPserver on the same Windows box. However, I'd like to be able to connect to the same ODBC DSN from another machine on the same LAN--in this particular case, an iMac running MAMP and OS X 10.5. Ultimately, I'd like to be able to connect to the same DSN from a remote server, but that's later in the project.
Is there some syntax like this that I can use:
$connect = odbc_connect("192.168.0.55:mssqllocal2", "", "");
...or am I misunderstanding some basic tenet of ODBC data sources?