enter code here
i am unable to connect my codeigniter3.0 with sql server 2008. I have
already installed extension file in xampp php extension directory.
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'xxx',
'password' => 'xxx',
'database' => 'DB_ProjectManagement',
'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
);
Я перепробовал все способы, чтобы соединить это с SQL Server 2008. Но всегда получалось не так.
error:
An uncaught Exception was encountered
Type: Error
Message: Call to undefined function sqlsrv_connect()
Filename: C:\xampp\htdocs\ProjectManagement\system\database\drivers\sqlsrv\sqlsrv_driver.php
Line Number: 144