I connected SQL Server database successfully through CodeIgniter framework. I am able to use SQL queries directly but I want to use active record queries for fetching insertion or deletion then I get the following error:
"Call to undefined method CI_DB_sqlsrv_driver::select()"
What does that mean? I am not able to use active records when using SQL Server db ? Or is there any other active record library for it?
Can I use ACTIVE RECORDS of CodeIgniter for SQL Server? If yes, how?
This is not working:
$this->db->select('*');
$this->db->from('Persons');
$query = $this->db->get();
$data = $query->result();
print_r($data);
Only this way is working:
$db = $this->db->query('select * from Persons')->result();
print_r($db);
database.php; Normally you should be able to use CI's Query Builder.but if you use some outdated version it might be possible that your driver isn't working... - sintakonte