CodeIgniter Forums
Connecting odbc to ms access - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Connecting odbc to ms access (/thread-8353.html)



Connecting odbc to ms access - El Forum - 05-15-2008

[eluser]edhrx[/eluser]
Hi,
I am struggling to connect to ms access this is the configuration
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "";
$db['default']['password'] = "";
$db['default']['database'] = "cp";
$db['default']['dbdriver'] = "odbc";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";


cp does exists as a data source but the logs are showing

SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified