[eluser]huangxiao[/eluser]
[quote author="jonez" date="1395934658"]Sorry I made a mistake above! I set your database to the driver, it should be this:
Code:
$db['default']['hostname'] = '127.0.0.1'; // can also try localhost
$db['default']['username'] = ''; // the user you want to connect as
$db['default']['password'] = ''; // the password for that user
$db['default']['database'] = ''; // the database name that contains your tables
$db['default']['dbdriver'] = 'sqlsrv';
[/quote]
By the way is this applicable to all version of Php and apatache in connecting CI to MSSQLServer?
Thank you.