CakePHP model useTable with SQL Views

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-02-25T14:59:33Z Indexed on 2010/06/11 12:12 UTC
Read the original article Hit count: 200

I'm in the process converting our CakePHP-built website from Pervasive to SQL Server 2005. After a lot of hassle the setup I've gotten to work is using the ADODB driver with 'connect' as odbc_mssql. This connects to our database and builds the SQL queries just fine.

However, here's the rub: one of our Models was associated with an SQL view in Pervasive. I ported over the view, but it appears using the set up that I have that CakePHP can't find the View in SQL Server.

Couldn't find much after some Google searches - has anyone else run into a problem like this? Is there a solution/workaround, or is there some redesign in my future?

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about sql-server-2005