First do you use mssql express?
I use Codeigniter with sqlserver express 2014 and 2012 with iis 7 with no problems.
This is my database config:
Code:
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'Your servname\SQLEXPRESS', // for example 'cmms-server\SQLEXPRESS'
'port' => '1433',
'username' => 'your username',
'password' => 'your password',
'database' => 'your tablename',
'dbdriver' => 'sqlsrv',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
Look also if the drivers are loaded in de PHP.ini .
Good luck
Andre