title: CakePHP 2.2 MSSQL / PDO Alternatives?
body: <p>We have a CakePHP 1.3 application that we're in the process of upgrading to 2.2.3. One of the requirements of our app is to be able to query into an MSSQL database of a separate application to do some authentication and to pull user data out.</p>
  
  <p>After two wasted days of researching and harassing our webhost to install the PHP / PDO / MSSQL lib (we already have PDO for MySQL, sqlite and sqlite 2) it's staring to seem pretty grim. </p>
  
  <p><strong>TL;DR: We need to find a way to do PDO MSSQL queries under Linux.</strong></p>
  
  <p><em>Begin Rant:</em></p>
  
  <p>The thing that's driving me crazy is this: <strong>The CakePHP devs BROKE MSSQL compatibility for the sake of making all their DB wrappers with PDO</strong>. If you had a 1.3 app on a Linux server that was happily connecting to MSSQL databases and want to upgrade it to 2.2, you will no longer be able to connect to that database because apparently using PDO is more important than ensuring that you don't destroy existing functionality for your users.</p>
  
  <p><strong>CakePHP 2.x Docs do NOT warn users of this pitfall, all they say is that you need PDO.</strong></p>
  
  <p>There should be a notice that PDO/MSSQL does not work under Linux, or <strong>there should be an alterantive to the Sqlserver.php datasource that's provided with stock CakePHP so that people upgrading their apps have a chance of getting their applications functional again under 2.2x</strong></p>
  
  <p>I am really steamed about this right now because I wasted a week of time porting things over from 1.3 to 2.2 and now it looks like I either have to manually write the queries and ignore CakePHP's great database abstraction, or I need to convert all my work BACK to 1.3 and give up all the new improvements in the latest version of CakePHP.</p>