Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/06/2008, 17:12
Avatar de iislas
iislas
Colaborador
 
Fecha de Ingreso: julio-2007
Ubicación: Mexico, D.F.
Mensajes: 6.482
Antigüedad: 17 años, 8 meses
Puntos: 180
Respuesta: Cómo obtener el tiempo de consumo de un bloque SQL?

No existe otra forma que hacer un:

SET @FechaInicial = getdate()

Y cuando termine, hacer:

SET @FechaFinal = getdate()

Para presentar la diferencia, usas, DATEDIFF