Welcome Guest, Not a member yet? Register   Sign In
Connect to SQLServer

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

$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 =]

Well, i just want to share it will help, u could see this forum:

Theme © iAndrew 2016 - Forum software by © MyBB