Ver Mensaje Individual
  #10 (permalink)  
Antiguo 13/02/2013, 13:17
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Store Procedure con la funcion Return

else
if @id is not null
begin
SELECT 'Mensaje'='Error: La tienda tiene relacion con ID ' + convert(varchar(10),@id)
end
else
tu mensaje


algo asi....saludos!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me