Acceso a SQL Server desde un sistema LAMP con CodeIgniter

Para poder acceder a un servidor SQL Server desde CodeIgniter es necesario instalar el controlador específico de SQL Server.

Instalar el controlador

Para instalar en controlador en mi sistema ejecuto lo siguiente:

$sudo apt-get install php5-sybase

Configuración en CodeIgniter

Para conectar con el servidor, hay que incluir el nombre del servidor,

$db['default']['hostname'] = ;
$db['default']['username'] = ;
$db['default']['password'] = ;
$db['default']['database'] = ;
$db['default']['dbdriver'] = 'mssql';

Configuración del servidor SQL Server

En este blog está muy bien explicado. Sólo hay que seguir los siguientes pasos para configurar sql-server.

1 comentarios

  1. I simply wanted to say thanks yet again. I do not know the things I would’ve made to happen without the recommendations revealed by you relating to such concern. It truly was the hard matter in my position, nevertheless observing a well-written approach you treated that forced me to leap for joy. Now i’m happier for your assistance as well as hope that you realize what a great job you are always accomplishing training the rest all through your webblog. I am sure you have never encountered all of us.
    [url=http://canadagoosenorge.8ewebs.com/]canada goose oslo[/url]
    canada goose oslo

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *