Viewing 15 posts - 3,751 through 3,765 (of 5,394 total)
Try comparing the ACTUAL execution plans.
Are they identical?
If not, are there any missing/different indexes?
October 21, 2010 at 9:35 am
This script extracts the top 20 queries by CPU usage.
SELECT TOP 20
query_stats.sql_handle AS "Query Hash",
...
October 21, 2010 at 9:33 am
sqlbee19 (10/21/2010)
October 21, 2010 at 9:26 am
Here's a sample of how you could do it:
-- Table to hold the words to search for
DECLARE @Patterns TABLE (
search_pattern varchar(50)
)
-- Table to hold the text to search in
DECLARE @test-2...
October 21, 2010 at 8:42 am
Yes. You just have to query sys.dm_exec_sessions:
SELECT program_name
FROM sys.dm_exec_sessions
WHERE session_id = @@spid
October 21, 2010 at 8:20 am
You can set up a logon trigger and record logins to a table of your choice.
Here's a sample:
CREATE TRIGGER [TR_LOGON]
ON ALL SERVER
FOR LOGON
AS
BEGIN
UPDATE Logons SET...
October 21, 2010 at 6:14 am
Paul White NZ (10/20/2010)
WayneS (10/20/2010)
@paul-2 - interesting colours on your new avatar.Thanks - it's almost summer here, so I felt like brightening it up a bit 🙂
Nice effect! You could...
October 21, 2010 at 1:43 am
Gianluca Sartori (10/20/2010)
If you know how to extract a single query's plan from a procedure plan I'll be glad to post it.
There's a way. Two, indeed.
October 20, 2010 at 10:25 am
TheSQLGuru (10/20/2010)
October 20, 2010 at 9:58 am
OK, I managed to extract a single query plan from the procedure plan, tweaking the xml in a text editor.
I can't believe there's no easier way to do it.
October 20, 2010 at 6:14 am
I have to admit that including more columns in the job index worked very well.
Most of the queries I saw yesterday performing badly got really better today.
An example of high...
October 20, 2010 at 4:29 am
Leo.Miller (10/19/2010)
I suspect the original design didn't expected this concentrated use of the Receiving_Number.
Leo, the original design didn't expect lots of things. 🙁 This is one of the worst databases...
October 20, 2010 at 1:33 am
Oliiii (10/19/2010)
... you can also give a shot at including more columns in your index to cover most cases and reduce the lookups.
This is a good point. I've tried to...
October 19, 2010 at 2:18 am
Leo.Miller (10/18/2010)
October 19, 2010 at 1:35 am
GilaMonster (10/18/2010)
Check some of the queries doing the lookups, are they selecting majority of the...
October 19, 2010 at 1:28 am
Viewing 15 posts - 3,751 through 3,765 (of 5,394 total)