Welcome Guest, Not a member yet? Register   Sign In
MSSQL + CI2 + Distant SQL Server
#1

[eluser]ngatcharius[/eluser]
Code:
$active_group = 'default';
$active_record = TRUE;

$db['default']['hostname'] = '';
$db['default']['username'] = '';
$db['default']['password'] = '';
$db['default']['database'] = '';
$db['default']['dbdriver'] = 'sqlsrv';
$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;

How to complete this settings
- if i have SQL Server 2005 install in another computer (computer name or ip adress)
- if i login with Windows Authentification

I have work with this tutorial http://www.phrenzy.org/code/sql-server-and-php/ but i have this error with CI2
Code:
A Database Error Occurred

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

Filename: C:\wamp\www\saari\system\database\DB_driver.php

Line Number: 124
i'm trying to use CI 1.7.2
thanks for reply
#2

[eluser]jasont[/eluser]
Hello I was having similar issue.
Quote:A Database Error Occurred

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

Filename: system\database\DB_driver.php

Line Number: 124

I fixed it by setting the following variable to false!
$db['default']['pconnect'] = FALSE;




Theme © iAndrew 2016 - Forum software by © MyBB