Viewing 15 posts - 76 through 90 (of 219 total)
You are simply counting the number of rows..He needs 3 cliams in a year.
July 3, 2012 at 1:36 am
Why everything is defined as nvarchar(50) like fiscalyear could be a smallint similarly others. nvarchar takes double space the corresponding varchar. You might need nvarchar for some columns for others...
July 3, 2012 at 12:24 am
Gullimeel (7/2/2012)
--------------------------------------------------------------------------------
This was not so show you, how to reproduce the eager spool. It was similar situation as OP has but at smaller scale like in 100 thousands rather than...
July 2, 2012 at 12:40 pm
I've updated all the statistics on the indexes with no help. Another strange thing is that in the query plan the eager spool estimates about 84k rows for the eager...
July 2, 2012 at 12:34 pm
This was not so show you, how to reproduce the eager spool. It was similar situation as OP has but at smaller scale like in 100 thousands rather than millions..
July 2, 2012 at 12:20 pm
Gail, You can reproduce the same by using the following sql...
drop table a
drop table nums
go
select cnt
into nums
from
(
select ROW_NUMBER() over (order by (select 0)) cnt
from sys.all_columns ac inner join sys.all_columns...
July 2, 2012 at 11:35 am
Not sure why no one recommended trace flag 1222, nor this series of blog posts: http://blogs.msdn.com/bartd/archive/2006/09/09/Deadlock-Troubleshooting_2C00_-Part-1.aspx
I asked for deadlock graph 😉
But all of above can be validated based...
July 2, 2012 at 9:32 am
People, there is no need to look any further than the fact that the OP is trying to return 35 MILLION RECORDS to the calling entity (presumably SSMS).
That too...
July 2, 2012 at 8:52 am
Try below...
Regarding the performance it depends on the indexes on the columns.Can you post which column has the clustered index and which one have nonclustered index. If you have covering...
July 2, 2012 at 7:49 am
total_worker_time is sum of time taken by all CPU's ,for all the execution of that particular query... see execution_count...If you divide toatl_worker_time by execution_count it will give you average worker...
July 2, 2012 at 5:54 am
Run one batch at a time. After first batch run the subquery in if exists to check whether the constraint is dropped or not.
Why do you need the 3rd batch?When...
July 2, 2012 at 5:30 am
SQL server stores the query plan for all the select,delete,insert and update statements unless recompile options were used.Sometime you might not see the plan in query if the statement was...
July 2, 2012 at 4:43 am
It depends on the usage.Some of cross apply can be written as inner join but if the cross apply is used for a function then it can not be rewritten...
July 2, 2012 at 4:35 am
There is some issue with my mahcine so I can not open plans.Hopefully, someone will reply based on your plan
I have used NON Clustered index on Col_name1 and date_time columns.
Is...
July 2, 2012 at 4:15 am
Still no luck with plan opening.I am opening it in text pad and data is kidn of scrambled.
G...
Looks like the indexes are issues here.
The delete statement is using clustered...
July 2, 2012 at 1:15 am
Viewing 15 posts - 76 through 90 (of 219 total)