You can get php to talk to ms sql 2000!! :-)
I read on one of the forums that there is a bug in the adodb-odbc.inc.php file. It tries connecting using the 'hostname':
$dbh = odbc_connect( $hostname,...)
what it should be doing is connecting using the dsn_name.
i.e. $db->Connect( $dsn_name, $username, $password, $dbname) or DIE( "connection failed" );
BUT, there seems to be other problems :-(
I've got Omni installed on my machine and I'm able to connect and read from the MSSQL 2000 server via 'localhost'. BUT when I try to do exactly the same thing through our IIS server, the '$recordset = db->execute( $sql ) or DIE( "execute failed" ); doesn't work.
In both instances I'm connecting to the same db and I'm pulling off the same record set.
I've tried creating a COM 'recordset' object ->
$recordset = new COM( "ADODB.RecordSet" );
But having done that, how does one perform the 'execute' to read in the record set (and then to subsequently loop through the table)?
Thanks