1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-11 08:34:59 +02:00

Revert "removed MsSqlDriver (is not available with PHP 5.3 or later; replaced with SqlsrvDriver)"

This reverts commit ac1ab26e7a.
This commit is contained in:
David Grudl
2016-01-24 22:47:44 +01:00
parent 4f2a0dac97
commit 8a7dbcba86
7 changed files with 641 additions and 0 deletions

View File

@@ -112,6 +112,22 @@ try {
echo "</p>\n";
// connects to MS SQL
echo '<p>Connecting to MS SQL: ';
try {
dibi::connect([
'driver' => 'mssql',
'host' => 'localhost',
'username' => 'root',
'password' => 'xxx',
]);
echo 'OK';
} catch (Dibi\Exception $e) {
echo get_class($e), ': ', $e->getMessage(), "\n";
}
echo "</p>\n";
// connects to SQLSRV
echo '<p>Connecting to Microsoft SQL Server: ';
try {