Viewing 15 posts - 3,211 through 3,225 (of 6,486 total)
Rick Heiges (5/22/2008)
May 22, 2008 at 12:30 pm
Or, as has been sugested previously - you can do it in a set-based fashion.
this should do pretty well, especially when compared to Cursor methods. It does rely on...
May 22, 2008 at 12:17 pm
PW (5/22/2008)
>>WHEN (Salary between 30000 and 40000) THEN Salary + 50000Wow, that's a greater than 100% salary hike. Where is this place, I want to apply for a job 😉
oops....
May 22, 2008 at 11:48 am
Michael Earl (5/22/2008)
No, it's not, so scratch that option.You are in a SQL 2005 forum, so I figured you were using 2005.
However - a scheduled task that routinely looks for...
May 22, 2008 at 10:58 am
I only see a non-clustered index in what you posted. That being said - it's going to be hard to tell what is happening, without some clue as to...
May 22, 2008 at 10:05 am
In all seriousness though - this just seems to hammer even further on what is usually the weakest link in high volume systems, i.e. the storage subsystem. It seems...
May 22, 2008 at 10:00 am
Steve Jones - Editor (5/22/2008)
Log shipping existed in many installations before Microsoft built a support...
May 22, 2008 at 9:24 am
Hmm...sounds a bit like homework.
You probably want to take a look at the CASE statement, and use it appropriately in an UPDATE statement.
May 22, 2008 at 9:19 am
Anirban Paul (5/22/2008)
Matt Miller (5/22/2008)
Anirban Paul (5/21/2008)
May 22, 2008 at 7:42 am
Anirban Paul (5/21/2008)
May 22, 2008 at 7:24 am
Jeff Moden (5/21/2008)
Heh... I started reading this post and then saw your first reply... I knew you'd use the running balance trick... it just makes sense, here. Nicely done!
Thanks...
May 21, 2008 at 8:44 pm
jeff.williams3188 (5/21/2008)
And better yet, if...
May 21, 2008 at 3:01 pm
jeff.williams3188 (5/21/2008)
;WITH partitionStats
AS (SELECT
ps.object_id,
SUM(CASE
WHEN (ps.index_id < 2)...
May 21, 2008 at 2:30 pm
Well - SQL Server 2005 has a PIVOT syntax, which would work just fine for what you're looking at.
BOL describes it all here:
http://msdn.microsoft.com/en-us/library/ms177410.aspx?wt.slv=RightRail
May 21, 2008 at 2:25 pm
Please be careful not to double-post. It "dilutes" the conversation, and tends to peeve off the regulars.
Let's continue the conversation over here:
http://www.sqlservercentral.com/Forums/Topic504822-149-1.aspx
May 21, 2008 at 2:21 pm
Viewing 15 posts - 3,211 through 3,225 (of 6,486 total)