Procedure to know the progress of a script etc

select  T.text, R.Status, R.Command, DatabaseName = db_name(R.database_id)
                , R.cpu_time, R.total_elapsed_time, R.percent_complete
from    sys.dm_exec_requests R
                cross apply sys.dm_exec_sql_text(R.sql_handle) T

Comments

Popular posts from this blog

SysDictField object not initialized. - Views

How to filter data for the last few weeks?

Get the value of Month or YY in SysComputedCOlumns in AX views