[eluser]flaky[/eluser]
Hi guys. I'm having this little issue
I'm connecting to mssql using odbc.
Code:
$db['default']['hostname'] = "Driver={SQL Server Native Client 10.0};Server=FLAKRON-PC\SQL2008;Database=test;";
$db['default']['username'] = "sa";
$db['default']['password'] = "sa";
$db['default']['database'] = "test";
$db['default']['dbdriver'] = "odbc";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = FALSE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
it's connecting without problems. The issue is when I query a table e.g tbl_user.
Active record is querying it with this sql
Code:
SELECT * FROM (tbl_user)
which is wrong, the sql syntax will fail, how can I remove the brackets around the table name?
cheers