Skip to content

Instantly share code, notes, and snippets.

@ramayac
Created March 8, 2013 14:34
Show Gist options
  • Select an option

  • Save ramayac/5116823 to your computer and use it in GitHub Desktop.

Select an option

Save ramayac/5116823 to your computer and use it in GitHub Desktop.
¿Cómo medir el tiempo de ejecución de una consulta o SP en Sybase?
declare @starttime datetime, @endtime datetime, @runtime int
set @starttime = getdate()
/*la consulta va aquí... select, update, insert, SP, etc.*/
set @endtime = getdate()
set @runtime = datediff(ms,@starttime,@endtime)
select @runtime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment