I have an error when running a stored procedure that contains dates as input.
My query is:
$query = "asistencia_virtual '2012-01-01', '2012-12-31'";
In Management Studio and it works perfect.
I have only problems with queries that are dated, the others work great.
Warning: odbc_exec(): SQL error: [Microsoft][SQL Server Native Client 10.0][SQL Server]
Error de sintaxis al convertir una cadena de caracteres a datetime., SQL state 22008 in SQLExecDirect
try this (reference):