Viewing 15 posts - 20,011 through 20,025 (of 22,213 total)
We have very similar requirements. We do it like this:
SELECT...
FROM MyTable m
WHERE m.VersionId = (SELECT TOP(1) m2.VersionId
...
July 9, 2008 at 7:10 am
Brian Tax (7/8/2008)
July 9, 2008 at 6:26 am
How come you don't need to add the scalar operator, '0 [Basic]', to the * version of the query? If you did add that, would it change the execution time?
Jeff...
July 8, 2008 at 1:13 pm
I'd need to see the execution plans to be sure, but I'll be you're getting index lookups for the column list, but not for the SELECT *. Can you post...
July 8, 2008 at 12:04 pm
Steve Jones - Editor (7/8/2008)
July 8, 2008 at 11:58 am
Honestly, I think it's a crutch. I haven't seen a well-planned design use it.
July 8, 2008 at 9:30 am
Some are friends, some aren't.
That about sums it up. I do agree that avoiding the occasional excess drinking when it occurs is a good choice if you want to move...
July 8, 2008 at 7:29 am
Based on nothing by my own personal experience...
What getting into Harvard gets you, these days anyway, isn't a superior education, but a superior name. You're a Harvard Grad (capitols required)....
July 8, 2008 at 6:59 am
I got this wrong as well. I've seen both STATIC & FAST_FORWARD work better in different circumstances. "It Depends" should have been the right answer on this one.
July 8, 2008 at 6:38 am
Nope.
You can use SSIS to do the work for you, but the analysis is up to you.
July 8, 2008 at 6:32 am
The only way I know of will hurt your performance. You can put FAST 1 hint on the query and it will start returning data immediately. It will however, really...
July 8, 2008 at 6:30 am
Gail is on the money here, totally.
Instead of trying to avoid having multiple queries, accept the fact that you will have multiple queries and then get some code to generate...
July 8, 2008 at 6:26 am
Posting the execution plan would help in the evaluation. Not seeing your structure and only seeing a query, we're all limited to making guesses.
July 8, 2008 at 6:23 am
GilaMonster (7/8/2008)
"We fixed it. No thanks to you."
I can't honestly say that I wouldn't have hit the guy. Nice exercise in restraint.
July 8, 2008 at 5:28 am
9 months at a start-up run by Harvard grads who's operating phrase was "Think Outside The Box." This extended to every single part of the company. One of the more...
July 7, 2008 at 1:27 pm
Viewing 15 posts - 20,011 through 20,025 (of 22,213 total)