Viewing 15 posts - 38,476 through 38,490 (of 59,072 total)
kazim.raza (5/10/2010)
;WITH
ctePreNumber AS
( --=== Add a row number to each "a" so we can repivot after the...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 10, 2010 at 2:48 pm
Lamprey13 (5/10/2010)
Jeff Moden (5/8/2010)
Fifth... [font="Arial Black"]do a SELECT/INTO to build the temp table [/font]instead of building it ahead of time. It will be much faster because it won't log...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 10, 2010 at 2:42 pm
Steve Jones - Editor (5/10/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 10, 2010 at 11:58 am
Heh... forget all the legalities. Strap on a recording device and tell your manager "No" because it's against the law.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 10, 2010 at 11:06 am
Can you post your list so we don't make duplicate suggestions? Thanks.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 10, 2010 at 11:04 am
You need to do the count (or any aggregation) as a SubQuery and join to it for the update.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 10, 2010 at 11:03 am
Glenn5709 (5/10/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 10, 2010 at 8:12 am
BWAA-HAA!!! They must be preping us for the next release. 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
May 10, 2010 at 8:06 am
Lowell (5/4/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 10, 2010 at 8:01 am
only4mithunc (5/10/2010)
I would like to know how you will approach this if the values are not hard coded, say it is from some table or it is a string...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 10, 2010 at 6:49 am
Jeffrey Williams-493691 (5/9/2010)
Jeff Moden (5/9/2010)
Jeffrey Williams-493691 (5/9/2010)
I don't see any reason to worry about which rows you have updated and/or tracking that in the temp table.
Keeps the locking localized to...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2010 at 10:58 pm
IIRC, SQL Server 2008 has the "5th" command in it... MERGE. Take a look at Books Online for the MERGE command. It'll do everything you ask in your...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2010 at 10:46 pm
<I told you so mode ON>
Heh... You just hit one of my pet peeves so I'm not sure I'm one of the folks to answer this one because I tend...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2010 at 10:42 pm
kazim.raza (5/9/2010)
It ain't working on #HIE 🙁 either its too much of data or what.. it keeps executing freezing my notebook :S
Are you using a real Tally table like...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2010 at 10:24 pm
Yes... I've seen such a thing just slam a 4 CPU system into the wall on UPDATES. I believe the problem may be that you're using the table name...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2010 at 10:21 pm
Viewing 15 posts - 38,476 through 38,490 (of 59,072 total)