Viewing 15 posts - 25,156 through 25,170 (of 26,484 total)
O.D.A.A., Now that's a good one!
:w00t:
March 5, 2008 at 10:32 am
Should also remember that 8 years of experience does not always equate to 8 years of experience; it could be 1 year of experience 8 times.
:hehe::cool:
March 5, 2008 at 9:30 am
It also looks like you are using SQL Server 2005, so when considering indexes, also look at covered indexes using included columns. Remember there is a trade off using...
March 5, 2008 at 8:29 am
Sorry, but this doesn't quite make sense:
I need to be able to a row that contains the name of the consultant even if the main SELECT statement returns a empty...
March 4, 2008 at 2:21 pm
You can put a primary key on a TVF as long as it isn't an inline TVF. We would need to see the DDL for the functions to be...
March 4, 2008 at 1:56 pm
Not sure either, and with no DDL, sample data, and expected results I can't test what I have, so give this a try with no promises that it will work:
with...
March 4, 2008 at 1:45 pm
You know, I didn't even notice that, but with the lack of formatting, it was easy to miss.
😎
March 4, 2008 at 1:03 pm
I don't think you are going to get much better improvement. Also, it is possible a nonclustered index on [State] and [InActive:] columns may have been a better choice...
March 4, 2008 at 12:20 pm
Matt was on to something else. I looked at the indexes as well, and he is correct. I think you will see an improvement if you built an...
March 4, 2008 at 12:03 pm
Would you please post the execution plan for the query. Oh, and no I don't know how you should do it, as I have never tried it myself, I...
March 4, 2008 at 11:59 am
Haritha Kodali (3/4/2008)
CREATE view "MAGICSSHD"."Incident" ...
March 4, 2008 at 11:56 am
Your table DDL doesn't match your query unless I missed something in all the code.
😎
March 4, 2008 at 11:45 am
Also, what's wrong with just doing this:
SELECT
count(*)
FROM
[MAGICSSHD].[Incident] WITH (NOLOCK)
WHERE
[State:] = N'C'
AND ([InActive:] = 0)
...
March 4, 2008 at 11:42 am
Besides formating your code, we could also use the DDL of the base table, including any and all indexes you have defined.
😎
March 4, 2008 at 11:34 am
Viewing 15 posts - 25,156 through 25,170 (of 26,484 total)