Welcome Guest, Not a member yet? Register   Sign In
Problem with "db->get"
#1

[eluser]Unknown[/eluser]
Hello all!,

I am new with CI, and I'm writing my first program.
I'm try connect to sql server 2008, and I'm connecting via odbc and
I have in my database.php following:

$db['default']['hostname'] = 'DRIVER={SQL Server};SERVER=192.168.0.207;DATABASE=CP';
$db['default']['username'] = 'Operador';
$db['default']['password'] = 'pe7878';
$db['default']['database'] = 'CP';
$db['default']['dbdriver'] = 'odbc';

but i'm getting the following error:


"A Database Error Occurred
Error Number: 37000
[Microsoft][ODBC SQL Server Driver][SQL Server]Sintaxis incorrecta cerca de ')'.
SELECT * FROM (cerepuertos)
Filename: T:\xampp\htdocs\AcopioCI\system\database\DB_driver.php
Line Number: 330"

which may be the cause?
I appreciate any suggestion,

best regards,

Fernando


Messages In This Thread
Problem with "db->get" - by El Forum - 02-08-2013, 05:42 AM
Problem with "db->get" - by El Forum - 02-08-2013, 02:25 PM
Problem with "db->get" - by El Forum - 02-13-2013, 03:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB