resolving config issues - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: resolving config issues (/showthread.php?tid=54055) |
resolving config issues - El Forum - 08-20-2012 [eluser]archon[/eluser] on my prod server I can connect to a ms sql database like so Code: $this->con = odbc_connect('al-barran', 'a_user', 'a_password') or die(odbc_errormsg()); I can perform queries normally thur this functionality. If I read the documentation/reviewing the code... ci should be able to perform this type of connection if I can get my settings correct. So in my ci database config I have Code: $db['default']['db_debug'] = TRUE; added the following to my controller Code: ini_set('display_errors', 'On'); Unfortunately I am still getting the generic 'A Database Error Occurred'. Any advice would be appreciated. Either for displaying what is wrong or point out where I have err'd in my config. resolving config issues - El Forum - 08-21-2012 [eluser]Oscar Dias[/eluser] I never used ODBC, but don't you need a hostname in your config? resolving config issues - El Forum - 08-21-2012 [eluser]archon[/eluser] The only time I have used ODBC is on desktop applications myself. I provided the odbc_connect() method as I know that it works. BUT I am at a loss as to why it works. resolving config issues - El Forum - 08-21-2012 [eluser]archon[/eluser] ok I resolved my issue.... my odbc connection is named the same as the database. Good grief it is the simple things.... embarrassed. |