Error connecting to SQLServer - 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: Error connecting to SQLServer (/showthread.php?tid=75868) |
Error connecting to SQLServer - alejandro99 - 03-25-2020 Hi everyone. I am new to CI4 and wanted to upgrade my website to CI4, but I am having trouble connecting to the SQLServer database. My connection details are these PHP Code: public $default = [ After testing the connection I get this error: Error Class '\CodeIgniter\Database\sqlsrv\Connection' not found [b]SYSTEMPATH/Database/Database.php at line 85[/b] Code: 78 throw new \InvalidArgumentException('You have not selected a database type to connect to.'); I have tested the connection with php and it connects correctly PHP Code: <?php please. Can you help me? Thank you so much everyone! RE: Error connecting to SQLServer - maxxd - 03-25-2020 I don't believe CI4 supports SQLServer yet - so far there's only MySQLi, Postgre, and SQLite3 from what I see in the code. |