Well, I had built an application intended for MSSQL, and originally ran it that way, I bought a new computer and for some odd reason it won’t let me connect via MSSQL.
So I set up ODBC. It connects fine, but it seems to hate active records. Am I going to have to rewrite all my queries? or is there something I’m missing. I get errors like this.
A Database Error Occurred
Error Number: 37000
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near ')'.
SELECT * FROM (News) ORDER BY id desc`
The easy way out is to open the file
system/database/drivers/odbc/odbc_driver.phpunder your CodeIgniter folder. Look for the function named_from_tables(in my case this is line 482).Change the return statement from:
To:
This should do it!