I have transfer data into table from trace file , after that i want check duration of praticulare events..
I want to know as bleow query display how much milliseond or microsecond from trace table?
SELECT TextData, Duration, CPU
WHERE EventClass = 12 -- SQL:BatchCompleted events
AND CPU < (Duration * 1000)
I guess I don't understand what that last part of the WHERE clause is for. Are you just trying to find things where parallelism did NOT take place based on a CPU/Duration comparison? If so, that's probably faulty logic since CPU time can still be less than duration even though parallelism took place.
is pronounced ree-bar and is a Modenism for R
First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Helpful Links:
How to post code problemsHow to post performance problemsForum FAQs