CodeIgniter Forums
Connect to SQLServer - 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: Connect to SQLServer (/thread-46589.html)



Connect to SQLServer - El Forum - 11-07-2011

[eluser]Gerep[/eluser]
Hi fellas,

I've searched on google and on this forum and I haven't found any solution.
I'm using CI 2.0.3 and I'm trying to connect to sqlserver 2008 on a client. I can connect using sqlserver manager so it's not a problem with hostname, password and user.

It returns me no error, I've search on the file mssql_driver.php and took the @ from @mssql_pconnect and it returns:

Fatal error: Call to undefined function mssql_pconnect() in C:\xampp\htdocs\pedidos\system\database\drivers\mssql\mssql_driver.php on line 81

Code:
$db['default']['hostname'] = 'oticalg.ddns.com.br';
$db['default']['username'] = '<username>';
$db['default']['password'] = '<password>';
$db['default']['database'] = 'bd_lab';
$db['default']['dbdriver'] = 'mssql';
$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';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;

Any ideas?

Thanks in advance =]


Connect to SQLServer - El Forum - 06-10-2012

[eluser]mobs6[/eluser]
Well, i just want to share it will help, u could see this forum:
http://ellislab.com/forums/viewthread/213879/