PHPackages                             mrmitch/mssql-bundle-legacy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. mrmitch/mssql-bundle-legacy

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

mrmitch/mssql-bundle-legacy
===========================

Microsoft SQL Server Bundle for Symfony 2+

3.0.0(4y ago)05MITPHP

Since May 7Pushed 4y agoCompare

[ Source](https://github.com/MrMitch/MssqlBundleLegacy)[ Packagist](https://packagist.org/packages/mrmitch/mssql-bundle-legacy)[ RSS](/packages/mrmitch-mssql-bundle-legacy/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (7)Used By (0)

DEPRECATED
----------

[](#deprecated)

realestate.co.nz still uses this bundle, but it's in legacy code that is being phased out. The capabilities of the bundle are limited, and have been superseeded by the Doctrine SQLServer support.

If you need a Doctrine DBLib driver, something like  should work.

If you wish to continue using the library, you may fork it and maintain it yourself. There will be no further development on this bundle moving forward.

Installation
------------

[](#installation)

### Step 1. Install MssqlBundle

[](#step-1-install-mssqlbundle)

Add the **realestate/mssql-bundle** into **composer.json**

```
"require": {
    ....
    "realestateconz/mssql-bundle": "master-dev"
},

```

And run

```
$ php composer.phar install
```

### Step 2. Configure DBAL's connection to use MssqlBundle

[](#step-2-configure-dbals-connection-to-use-mssqlbundle)

In config.yml, remove the "driver" param and add "driver\_class" instead:

```
doctrine:
    dbal:
        default_connection:     default
        connections:
            default:
                driver_class:   Realestate\MssqlBundle\Driver\PDODblib\Driver
                host:           %database_host%
                dbname:         %database_prefix%%database_name%
                user:           %database_user%
                password:       %database_password%

```

### Step 3. Enable the bundle

[](#step-3-enable-the-bundle)

Finally, enable the bundle in the kernel:

```
