CodeIgniter Forums

Full Version: odbc connection error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Tamilmani[/eluser]
Hi,

I am using odbc connection. When i logged getting error message

A Database Error Occurred
Error Number: 01000

[Microsoft][SQL Server Native Client 10.0][SQL Server]Executing SQL directly; no cursor.

How i solve this issue ?

sample code database.php

$active_group = "default";
$active_record = true;
$db['default']['hostname'] = "Driver={SQL Server Native Client 10.0};Server=54.66.97.45,1433\\mssql2008-1;";
$db['default']['username'] = "username";
$db['default']['password'] = "password";
$db['default']['database'] = "databasename";
$db['default']['dbdriver'] = "odbc";
$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";

El Forum

[eluser]CI_adis[/eluser]
Hi Tamilmani,

I get this error message too.. Did you manage to solve this in CI??

El Forum

[eluser]CI_adis[/eluser]
unfortunately this is not fixed in 2.0... :-(