Quantcast
Channel: Substring In Sql | Automatic Website Traffic RSS
Viewing all articles
Browse latest Browse all 989

sys.dm_exec_sql_text (Transact-SQL)

$
0
0
Obtain information about the top five queries by average CPU time The following example returns the text of the SQL statement and average CPU time for the top five queries. SELECT TOP 5 total_worker_time/execution_count AS [Avg CPU Time], SUBSTRING(st.text ...

Viewing all articles
Browse latest Browse all 989

Trending Articles