CodeIgniter Forums
how to connect sql server 2000 with codeigniter 1.7.2 with two computer - 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: how to connect sql server 2000 with codeigniter 1.7.2 with two computer (/showthread.php?tid=25409)



how to connect sql server 2000 with codeigniter 1.7.2 with two computer - El Forum - 12-10-2009

[eluser]Unknown[/eluser]
this is my code
Code:
$active_group = "default";
$active_record = TRUE;

$db['default']['hostname'] = "xeonserver";
$db['default']['username'] = "sa";
$db['default']['password'] = "";
$db['default']['database'] = "PAYROLL_HTI";
$db['default']['dbdriver'] = "mssql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = TRUE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";

i get error:

A Database Error Occurred

Unable to connect to your database server using the provided settings.


when i run my script in my computer:
http://192.168.1.100/payroll/
error

I try change my default hostname with ip :192.168.1.3
error too.

Can you help me. Thanks