Viewing 15 posts - 15,016 through 15,030 (of 18,923 total)
I like the derived table/join approach... it gives you room to add as many columns as you need down the line, and it's more often than not faster than the...
July 14, 2005 at 6:53 am
That's why I asked you if the top 3 was static, that's another completly different solution if that number is dynamic.
Logic :
Select Cols from table where exists (check if...
July 14, 2005 at 6:49 am
You mean set @identity = SCOPE_IDENTITY()??
July 14, 2005 at 6:46 am
I always try to avoig temp table... but this one is definitly faster on bigger tables.
July 14, 2005 at 6:45 am
... where id = @Param... or you will whip out the while thing
.
July 14, 2005 at 6:29 am
No I thaught that it was another way
.
July 13, 2005 at 10:05 pm
Isn't it what I proposed?
July 13, 2005 at 9:50 pm
Code both, check the execution plan. I don't have a global answer that works for every case. And as always I think I can safely assume that it...
July 13, 2005 at 9:47 pm
Check this thread out... not for the faint of heart
.
July 13, 2005 at 9:41 pm
What's the exact error?? Hard to help you without that.
July 13, 2005 at 9:39 pm
Been there... now I learned the set approach
. Hopefully that's what will get you to 2k
July 13, 2005 at 9:38 pm
Yup, this is a case where the many tables needs to have some sort of order
.
July 13, 2005 at 9:35 pm
*Clever: A wifty idea you have today that generates copious amounts of work tomorrow.
![]()
![]()
July 13, 2005 at 9:34 pm
Viewing 15 posts - 15,016 through 15,030 (of 18,923 total)