PHPackages                             prone987/mssql-bundle - 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. prone987/mssql-bundle

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

prone987/mssql-bundle
=====================

Microsoft SQL Server Bundle for Symfony 2

v1.0.2(10mo ago)119MITPHP

Since Jul 23Pushed 10mo agoCompare

[ Source](https://github.com/Manuhiti/mssql-bundle)[ Packagist](https://packagist.org/packages/prone987/mssql-bundle)[ RSS](/packages/prone987-mssql-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)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:

```
