What does the code look like where you call save?
Also, what do you get with $this->log($your_array) in the error log?
Is Cake running on the same machine as the DB?
On Thu, Mar 14, 2013 at 7:41 AM, rogerbenevento
wrote:
> Good morning,
>
> I am passing an array to save(), the N´s are of Cake.
Good morning,
I am passing an array to save(), the N´s are of Cake.
Thanks
Em quarta-feira, 13 de março de 2013 19h53min18s UTC-3, cricket escreveu:
>
> > VALUES (N'Marcelo',
>
> You have a stray single quote( ' ). Actually, you have several: All
> your strings have N before them. Where do the
> VALUES (N'Marcelo',
You have a stray single quote( ' ). Actually, you have several: All
your strings have N before them. Where do the Ns come from? Are you
passing an array to save() or are you using $this->query to save the
data?
On Tue, Mar 12, 2013 at 10:57 AM, rogerbenevento
wrote:
> Good
Good morning, sorry by my english.
I am trying make a insert into SQL Server but i dont't work
Database Error
*Error: *SQLSTATE[42000]: [Microsoft][SQL Server Native Client 10.0][SQL
Server]Incorrect syntax near 'Marcelo'.
*SQL Query: *INSERT INTO [tecnicos] ([nome], [email], [telefone], [admin