CodeIgniter Forums
SQL server and codeigniter 4 connection - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: SQL server and codeigniter 4 connection (/showthread.php?tid=88368)



SQL server and codeigniter 4 connection - Maricel - 08-29-2023

Hello guys I am having problems with CI4 and sql server 2014 but it throws me this error

extension=php_pdo_sqlsrv_82_ts.dll
extension=php_sqlsrv_82_ts.dll

PHP Code:
Error connecting to the databaseErrorCall to undefined function CodeIgniter\Database\SQLSRV\sqlsrv_configure() in C:\wamp64\www\app\vendor\codeigniter4\framework\system\Database\SQLSRV\Connection.php:128

config conection 

public array $default = [
        'DSN'          => '',
        'hostname'    => 'local\sqlexpress',
        'username'    => 'sa',
        'password'    => 'password',
        'database'    => 'BD',
        'DBDriver'    => 'SQLSRV',
        'DBPrefix'    => '',
        'pConnect'    => false,
        'DBDebug'      => true,
        'charset'      => 'utf8',
        'DBCollat'    => 'utf8_general_ci',
        'swapPre'      => '',
        'encrypt'      => false,
        'compress'    => false,
        'strictOn'    => false,
        'failover'    => [],
        'port'        => '',
        'numberNative' => false,
    ];