Skip to content

Instantly share code, notes, and snippets.

@kidsil
Created August 19, 2010 11:49
Show Gist options
  • Save kidsil/537681 to your computer and use it in GitHub Desktop.
Save kidsil/537681 to your computer and use it in GitHub Desktop.
Ever wondered how the hell you connect Doctrine to MS SQL?
simply through this:
$manager = Doctrine_Manager::getInstance();
$manager->openConnection('dblib://'.$db['user'].':'.$db['password'].'@'.$db['host'].'/'.$db['database']);
This should do it!
make sure you have pdo_dblib and all those things
it took me something like 7-8 hours to get through this so I hope you spread the word!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment