Here is the good answer which can be refered:
https://askubuntu.com/questions/578934/mssql-connection-from-ubuntuAnd in php write the code to connect to MS SQL:
$conn = odbc_connect ( "Driver={SQL Server};Server=$myServer;Database=$myDB;", $myUser, $myPass ) or die ( "Connection failed: " . $conn );
or
$this->conn = odbc_connect ( "MSSQL", $myUser, $myPass ) or die ( "Connection failed: " . $conn );
This is "SQL Server" or "MSSQL" dsn name.
Comments
Post a Comment