Welcome Guest, Not a member yet? Register   Sign In
SQL server and codeigniter 4 connection
#1

(This post was last modified: 08-29-2023, 12:44 PM by Maricel.)

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,
    ]; 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB