Welcome Guest, Not a member yet? Register   Sign In
ODBC SELECT - no value escape ?
#1

[eluser]hykoh[/eluser]
Hi there,

i need to migrate a MSSQL DB to a new DB. In the MSSQL DB, there is no numeric key used for datasets, only strings/names. So, if I foreach the results and try to query other reference tables, i fail on names within a single quote in it:

Quote:[Microsoft][ODBC SQL Server Driver][SQL Server]Zeile 3: Falsche Syntax in der Nähe von 'Andrea'.

SELECT * FROM sysop.SD_Model_Locations WHERE SMLC_SM_Model = 'D'Andrea, Firstname'

Filename: C:\xampp\htdocs\system\database\DB_driver.php

Is it a bug within the CI ODBC driver ?


Messages In This Thread
ODBC SELECT - no value escape ? - by El Forum - 06-18-2012, 04:52 AM
ODBC SELECT - no value escape ? - by El Forum - 06-20-2012, 12:35 PM
ODBC SELECT - no value escape ? - by El Forum - 06-20-2012, 06:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB