I really like using sp_whoisactive v11.11 by Adam Machanic. But when then info is displayed, the DB name is at the very end. I would like it to in the very first columns so I don't have to scroll everytime... Does anyone have suggestions to arrange columns
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
|
Edit the line with @output_column_list declared on it and put [database_name] between [dd%] and [session_id]. When I scripted it out it was on line 110. |
|||||||
|
|
Change the code. Or ask Adam Machanic to change it. |
|||
|
@output_column_listoptional parameter is for? This works for me: EXEC dbo.sp_WhoIsActive @output_column_list = '[dd%][session_id][database_name][sql_text][sql_command][login_name][wait_info][tasks][tran_log%][cpu%][temp%][block%][reads%][writes%][context%][physical%][query_plan][locks][%]' – Paul White Feb 9 at 6:43