• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect to SQLServer

#1
[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 =]

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.