Quantcast
Channel: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)
Browsing latest articles
Browse All 52 View Live

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

@AlanCapture to a temp table, and use DATEDIFF on the start_time and collection_time columns.--Adam

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Just started tinkering with this the other day.   Is there a way to get the duration (dd hh:mm:ss.mss) in a numerical format?   Our server has dozens of databases and in order to hone in on global...

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

@Firasath:Glad it's been of good use to you!CPU: MillisecondsReads/Writes: Logical reads, physical writes. (See physical_reads for the physical reads.) Measured in 8kb pages.used_memory: Memory...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

sp_whoisactive has been immensely helpful, thank you :) . I do have few questions.EXEC dbutil.dbo.sp_WhoIsActive       @output_column_list = ' [dd%] [session_id] [sql_text] [sql_command] [login_name]...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

sp_whoisactive has been immensely helpful, thank you :) . I do have few questions.EXEC dbutil.dbo.sp_WhoIsActive       @output_column_list = ' [dd%] [session_id] [sql_text] [sql_command] [login_name]...

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

@SteveHappy to help.What do you mean by "a lot of red?" What steps are you taking (i.e. what does "load [the] script" mean to you), and what are the actual errors you're seeing?--Adam

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hello Adam,I've just stumbled across this site and I hope you're still at it.Even though I've been in the IT since the beginning of IT time (yes, I started with computers before the PC...1980), I'm new...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

@Adam,Did you find any fix on this. Thanks.

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Thanks again, Ram. I'll investigate. I'm pretty sure I know what the problem is.

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi Adam,Here are the details. Collation on the instance: SQL_Latin1_General_CP1_CI_ASDoes windows use a language other than US?Windows server is configured to use English (United States) language and...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

@Ram,More important is the locale setting -- i.e. what's the collation on the instance? Does Windows use a language other than US English?Also: Does this ALWAYS happen?

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi Adam,I'm using sql server 2012.Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64)   Oct 19 2012 13:38:57   Copyright (c) Microsoft Corporation  Enterprise Edition: Core-based Licensing (64-bit) on...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

@Ram,Please share some more information: - What locale settings did you use? - What exact version of SQL Server are you running?Thanks,Adam

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

I too received the below error when i was running this stored procedures as job. As mentioned by Brian Jensen there may be a slight problem with datetime. Nothing is running except the sql server...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Adam,Normally this sp runs without incident however I had it set on a phased 30 second poll to table over a series of a day to gather metrics and it ended up hitting the below error.  Versioning info I...

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi Brian,Interesting. Do you have any really long-running sessions? I wonder if one of the internal checks was near the threshold or something...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi, thank you for this very nice procedure :)I think there may be a slight problem with datetimes (else I misconfigured something).I was running the procedure as a SQL job, and it started failing...

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

And to your point on update stats: they are upto date.And this is a pretty heavy server, with 12 TB data, spread across 48 Luns, and major big tables partitioned by date.  I do have on all the...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

We kind of got it to from worst to better now. The server is a 8 physical cpu*6 hyper thread ratio, making it 48 logical CPU count with 256 GB physical memory, with sql set to about 240 GB. We were...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi Suresh,Sounds like someone changed something. (Even if they deny it :-).) Do you have a change control process of some sort?Either that, or stats have gotten out of date. I might start by simply...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

I am still working on this.. But I execute this query as well, which gives the query planSELECT mg.granted_memory_kb, mg.session_id, t.text, qp.query_plan FROM sys.dm_exec_query_memory_grants AS...

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Auto correct..) performance issues on our SQL 2k8 dw server

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Will give this a try tmrw on oursqk 2k8 fast track dw server where users are complaining of perfect issues

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Thank you Adam!  This script is great and has saved us many times.  Just yesterday someone on our team had set off a session level trace with Quest's Spotlight tool.  I was able to see the TRACE WRITE...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Praveen: You want to try it WITHOUT that option! @get_locks = 0 -- if you're having performance problems.

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Thank you Adam. i will try with (@get_locks = 1) option and let you know.

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi Luke,The easiest way to handle this in the short term is to use @get_full_inner_text = 1. Then you'll see the entire stored procedure -- including the name.--Adam

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Adam, I'm using this sp_whoISActive to find root blockers but would like to see the object name, if the executing query is within a stored procedure or function, returned.  Currently I'm inserting the...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi LukeI'm not sure it would be especially simple given how the code is structured. Can you give me some background on what scenario you need it for? I'm happy to consider it but it's not something...

View Article



re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Adam, thanks for an awesome script!  Is there an easy way to add the object id of an executing stored procedure to the output from the sys.dm_exec_sql_text DMV?

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi Praveen,Yes, I've run it on a number of systems that were completely maxed out, and while I have seen run times of up to a minute in really serious cases, I've never seen anything close to 40...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi Adam,Thank you so much for this wonderful script. I had a chance to test your script on one of my lab system while we do most of our load testing. Under the peak load with CPU hitting 90% and above,...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Milton: Your database is set to the wrong compatibility mode (8.0). I covered this error in one of the earlier posts :-)--Adam

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi thanks for the code, but im getting some errors, in this lines:Mens 102, Nivel 15, Estado 1, Procedimiento sp_WhoIsActive, Línea 533Sintaxis incorrecta cerca de '.'.Mens 156, Nivel 15, Estado 1,...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Yes, the system is OLTP, hopefully well tuned ... so that't why delta doesn't work too well.Is there any possibility to get stats for all users from one certain time ?

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi Richard,A couple of comments:A) If the activity on the system is "OLTP style" (lots of shorter queries) delta mode isn't applicable -- the same queries need to be running on both collections, and if...

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hello, can u help me? I am trying your script to show data for DELTA times, but I always get ZERO values. Even if delta interval is 100 sec. I am trying it on heavily used system, so there is big...

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Ricardocr: I don't really see the point of filtering to see only queries reported as runnable, nor would I even be able to tell you how to properly implement such a filter. First of all, the...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Thanks for this nice toolBut if possible could you please add a filter by session status? I do not want to see the 2000 sessions the this is returnung right now, I tried to modified to only show the...

View Article

Parallelism, CPU Time & DMV’s

Whilst reviewing the CPU statistics of a system that i knew was CPU bound i found the numbers were not

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Ken,http://sqlblog.com/blogs/adam_machanic/archive/2011/04/28/who-is-active-s-hidden-gems-a-month-of-activity-monitoring-part-28-of-30.aspxSearch for "Accurate CPU Time Deltas"--Adam

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi Adam, I've just begun looking at V11 and find one thing puzzling - deltas sometims return higher values than cumulatives - not expected??I have just tried sp_WhoIsActive V11 on a busy system. Using...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hi Adam,I believe the Datediff function error in the sp_whoisactive procedure is caused from the following SQL fragment in the procedure:CASE WHEN DATEDIFF(day, y.start_time, GETDATE()) > 24 THEN...

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Hello Adam,This night, for the first time I experienced this problem. I use sp_WhoIsActive to check blockings on the mentioned SQL Server 2012 (SP2, CU7) Instance for a long time and as I said, to the...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

D'Oh! Thanks Adam! I didn't realize the script had that level of automation built in.  Much appreciated!

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

@AccedentalDBAYou need to replace the string "<table_name>" with a valid table name. Your code is replacing "WhoIsActive_Log" instead. That string doesn't even exist in the output schema so the...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Thanks so much for this script!I did run into an issue while trying to create a destination table according to Brent Ozar's suggestion...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

@Avinash:You are undoubtedly correct, and thanks for sharing your solution. I have something slightly different in mind but this is a great workaround for people who don't want to wait for my next...

View Article

re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

Oops, my mistake, I sent before I completed my review, ignore above.

View Article


re: Who is Active v11.00 (A Month of Activity Monitoring, Part 27 of 30)

I believe there is a bug in 11_00 and 11_11 with the DATEDIFF usage.  In 11_11, the CASE statement THEN clause (below) has the GETDATE() and y.start_time reversed.... CASE WHEN DATEDIFF(day,...

View Article

Browsing latest articles
Browse All 52 View Live