Welcome Guest, Not a member yet? Register   Sign In
'Invalid DB driver' error when connecting CodeIgniter framework to Sql Server
#2

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
Reply


Messages In This Thread
RE: 'Invalid DB driver' error when connecting CodeIgniter framework to Sql Server - by snelledre - 09-26-2018, 08:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB