Your fork of sqlsrv project is genius idea! :)
I'm using it for Feeds and SELECT statements only so I don't know if it's working for everyting but still this is fantastic.

One thing I had to change to make it work:

Comments

philipz’s picture

StatusFileSize
new551 bytes

A colon not a semicolon of course:

paddy_deburca’s picture

Philip, the fix is not as simple as this. I believe that the comma works on MS Windows (http://www.php.net/manual/en/ref.pdo-dblib.php#66917), whereas the colon is necessary for *nix.

It may be necessary to define a DB_PORT_SEPARATOR that is either a comma or a colon depending on the architecture, and using that constant rather than hard coding a comma or colon in the host option.

Paddy.

philipz’s picture

This is a good idea to implement it like that.
From various sources I found you could check for OS like that:

if (strncasecmp(PHP_OS, 'WIN', 3) == 0) {
    echo 'Windows!';
} else {
    echo 'Not Windows!';
}

BTW since my last comment I've been using your driver also with Migrate module and it's been working great.

amontero’s picture

Happened to me, too. Kept me busy for some time until found it:
http://us1.php.net/manual/en/ref.pdo-dblib.connection.php#88703

The main reasoning for using this module is using it from OS other than Windows. Should not this be warned in the project page, if not left by default as colon in the code?

deadbeef’s picture

Issue summary: View changes
StatusFileSize
new905 bytes

Here's a patch that should apply with git and set the separator depending on OS