Viewing 15 posts - 25,171 through 25,185 (of 26,490 total)
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
Everyone has their own way of laying out code. This is how I like to do it using the example several have used in this thread:
SELECT
...
March 4, 2008 at 8:51 am
Guess I'll have to check this out from home. Can't view the site here at work.
😎
March 4, 2008 at 8:37 am
Time to ask a question, why the sub-total every 5 records? Seems to me this should probably be done on the application side, not the database side of things...
March 3, 2008 at 4:19 pm
The only gotcha I would warn about is regarding SSIS packages. When you create an SSIS package with a script task, be sure to select the option to precompile...
March 3, 2008 at 2:48 pm
Not that I am aware of, sorry. You can setup a DDL trigger to capture that event at a server level, or setup a trace to capture that as...
March 3, 2008 at 2:01 pm
I think the difference between a 5 of 10 and a 9 of 10 (to use a scale) isn't so much the amount of knowledge but more the intuitive thought...
March 3, 2008 at 1:39 pm
It isn't that we are trying to down play our knowledge, it just the more we learn, we learn that there is more we don't know.
Maybe I am better than...
March 3, 2008 at 1:24 pm
Life lesson -- There is always something new to learn, even when you think you know it all!
You can bury me when I stop learning.
March 3, 2008 at 12:56 pm
Viewing 15 posts - 25,171 through 25,185 (of 26,490 total)