Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/09/2006, 16:47
Avatar de Mithrandir
Mithrandir
Colaborador
 
Fecha de Ingreso: abril-2003
Mensajes: 12.106
Antigüedad: 21 años, 9 meses
Puntos: 25
Probablemente algo tan simple como:

DECLARE @cotizaciones INT
SELECT @cotizaciones = dbo.Cmp_F_getNumCotizaciones(IdEmpresa,IdOficina,I dItem)

SELECT
@cotizaciones as NumCotizaciones,
(Case when @cotizaciones > 0 Then 'True' Else 'false' End) as chkEliminar
FROM dbo.Cmp_SolicitudCompra
WHERE dbo.Cmp_SolicitudCompra.IdEmpresa=@PI_IdEmpresa
AND dbo.Cmp_SolicitudCompra.IdOficina=@PI_IdOficina
__________________
"El hombre, en su orgullo, creó a Dios a su imagen y semejanza."
Friedrich Nietzsche