Viewing 15 posts - 17,131 through 17,145 (of 22,214 total)
Oh, lordy. That's too much like work. After about the third SELECT DISTINCT, I lost interest. Sorry.
June 22, 2009 at 10:06 am
There are always exceptions, but in general, you're better off using the LEFT JOIN. When in doubt, write the query both ways and look at the execution plans.
June 22, 2009 at 7:37 am
You can. I don't have a link for you. It's just:
EXEC @param1=42
June 22, 2009 at 7:35 am
I just want to echo what everyone else has said. Without at least an execution plan, it's just not possible to say what's going on.
I can suggest that you try...
June 22, 2009 at 7:16 am
I was really nervous opening this up, expecting to get 34,000 lines. There are only 14. Had me going for a minute there.
Anyway, 34,000 is more than a little extreme....
June 19, 2009 at 11:36 am
suhas.wadadekar (6/19/2009)
Dropping a database and creating a new one is an option. But, I was trying to avoid dropping the procedures and functions written for the...
June 19, 2009 at 9:13 am
dan (6/19/2009)
Sorry for my previous brief posts with bad spelling and grammer. Here is what I have found:
The optimiser deals better with a sub query look up rather than a...
June 19, 2009 at 8:47 am
Except for third party databases, all our databases are built from source, so we can drop the database and recreate it pretty much by pushing a button.
However, you could look...
June 19, 2009 at 8:42 am
Once you've established blocking, you need to understand why there is blocking. It could be poor performance requiring index or query tuning or it might be transaction management or contention...
June 19, 2009 at 8:37 am
An index that has all three columns, which makes it covering. It can also be covering if one or more (or all three) of the indexes is in the clustered...
June 19, 2009 at 8:00 am
hi_abhay78 (6/18/2009)
SELECT MIN(TicketId) FROM TicketActivity
The above 2 queries are different.
But you can also run the min query as below :
select top 1 ticketid from TicketActivity order...
June 19, 2009 at 7:52 am
What you've got are an ordering query, TOP, and an aggregate query, MIN. The ordering query must have an ORDER BY statement to work. You can't know what order things...
June 19, 2009 at 7:49 am
GilaMonster (6/19/2009)
One I asked once (in an interview for senior position) was how to repair a torn page without losing any data. Anyone want to guess the answer I got?
I'm...
June 19, 2009 at 7:29 am
Excellent article. Thanks for putting it up. I just wish you had posted it a few years ago. I'm going to print it out now & keep it handy as...
June 19, 2009 at 6:10 am
jason brimhall (6/18/2009)
I like to throw in some good code and bad code samples. You pick out which one works better and tell me why. Or I...
June 19, 2009 at 5:56 am
Viewing 15 posts - 17,131 through 17,145 (of 22,214 total)