
06/10/2011, 09:59
|
 | | | Fecha de Ingreso: junio-2008
Mensajes: 85
Antigüedad: 16 años, 9 meses Puntos: 0 | |
Error de syntaxis SQl server Hola que tal estoy teniendo un problema aver si me pueden dar una mano
este es mi codigo que hace el insert en sql server: Código PHP: $query = $this->db->query('EXEC AB_BO_CATALOGOS_PRODUCTOS_ABM
@pACTION = \'INSERT\',
@pPRO_REPOSITORIO = '.$repo.',
@pPRO_TITULO = '.$titulo.',
@pPRO_IMAGEN_PATH = '.$imagepath.',
@pPRO_DESCRIPCION = '.$descrip.',
@pPRO_RESUMEN = ,
@pPRO_CARACTERISTICA = '.$caract.',
@pPRO_PREGFRECUENTES = NULL,
@pCAT_IDS = '.$catid.',
@pPRO_DESTACADO = '.$destacado.',
@pPRO_IMG_PATH_DESTACADO = '.$imagedestpath.',
@pPXC_ORDEN = 0,
@pCOR_ID = '.$coreid.',
@pPAI_ID = '.$paiid.',
@pPRO_CODIGO = '.$codigo.',
@pPRO_ACTIVO = '.$activo.',
@pIDI_ID = '.$idiid.',
@pPRO_BORRADOR = '.$borrador);
ESTE ES EL ERROR: Cita: A Database Error Occurred
Error Number: 37000
[Microsoft][SQL Native Client][SQL Server]Incorrect syntax near ','.
EXEC AB_BO_CATALOGOS_PRODUCTOS_ABM @pACTION = 'INSERT', @pPRO_REPOSITORIO = 0, @pPRO_TITULO = PRUEBAAAAA, @pPRO_IMAGEN_PATH = , @pPRO_DESCRIPCION =
PRUEBAAAAA
, @pPRO_RESUMEN = , @pPRO_CARACTERISTICA =
PRUEBAAAAA
, @pPRO_PREGFRECUENTES = NULL, @pCAT_IDS = NULL, @pPRO_DESTACADO = 0, @pPRO_IMG_PATH_DESTACADO = '/galeria/multimedia/images/2011-10-06-12-59-17-80992dest.jpg', @pPXC_ORDEN = 0, @pCOR_ID = NULL, @pPAI_ID = 1, @pPRO_CODIGO = PRUEBAAAAA, @pPRO_ACTIVO = 0, @pIDI_ID = 3, @pPRO_BORRADOR = 1 |