Viewing 15 posts - 5,086 through 5,100 (of 5,394 total)
I would say "none"...
I don't see anything that can't be done with a set-based solution, which performs much better. I suggest you to try to convert this into a set...
June 26, 2009 at 1:06 am
Grant Fritchey (6/25/2009)
Miracles can happen.Woo hoo!
http://news.bbc.co.uk/sport2/hi/football/internationals/8114585.stm
Of course they can! How do you think Italy won the last World Cup?
June 25, 2009 at 10:01 am
Ok, so this could do the trick:
DECLARE @selectedId TABLE (id int)
INSERT INTO @selectedId
SELECT id,
FROM feed
where manager= 'smith'
ORDER BY NEWID()
UPDATE feed
SET selected = 1
FROM feed AS F
INNER JOIN @selectedId AS...
June 25, 2009 at 9:45 am
I would suggest you to save the id of the selected rows in a temp table and then update in join with it.
It depends if the update happens in the...
June 25, 2009 at 9:39 am
It's not you to decide, it's the query optimizer. Personally I never join on columns that are not to be joined and I keep filters in the WHERE clause. This...
June 25, 2009 at 5:46 am
WayneS (6/24/2009)
Gianluca Sartori (6/23/2009)
WayneS (6/23/2009)
Well, I let him know a solution is available, but... well, see for yourself... http://www.sqlservercentral.com/Forums/FindPost740549.aspx
LOL! What's your hourly fee, Wayne? I need to get the grass...
June 25, 2009 at 1:20 am
Florian Reischl (6/23/2009)
Roy Ernest (6/23/2009)
Did anyone see this requestHe has some nerve...:-)
Yep. There is the second part of the story:
http://www.sqlservercentral.com/Forums/Topic740368-146-1.aspx
And there is the third
http://www.sqlservercentral.com/Forums/FindPost741056.aspx
and fourth
http://www.sqlservercentral.com/Forums/FindPost741074.aspx
Maybe the same person? Did you...
June 24, 2009 at 10:21 am
June 24, 2009 at 10:18 am
June 24, 2009 at 10:17 am
Oh, I see. Thanks to Wikipedia I found out who he was.
He died when I was 7, that's why I don't know him...
June 24, 2009 at 8:55 am
Glad you found a solution.
I'm sorry, but I don't know Tommy Cooper. He doesn't seem to be very popular here in Italy...:-)
Ciao
Gianluca
June 24, 2009 at 8:49 am
You can use in the case expression any numbers you like, they just define the order you want to assign to the row in one case (my condition is met...
June 24, 2009 at 6:47 am
First of all, the jokes in your signature almost made me run away from this thread... They really are horrible!:hehe:
Your code is really long and complex, although I must admit...
June 24, 2009 at 6:40 am
You always need to order by the case expression first. Ordering by a constant integer value means ordering by the Nth column of the results. In your example, order by...
June 24, 2009 at 6:30 am
In remote linked servers there's a query timeout that can be set in the "Server Options" tab.
The main issue is that the query doesn't return results in a reasonable time,...
June 24, 2009 at 6:25 am
Viewing 15 posts - 5,086 through 5,100 (of 5,394 total)