Viewing 15 posts - 1 through 15 (of 29 total)
Thank you for the answer. Sorry I got a little snide in that last post, wasn't the best day for me.
June 23, 2010 at 5:25 pm
Ah, I can understand the confusion.
In the actual scenario, sometimes the field is null in the business table, and sometimes its a previous value that needs to be updated...so I...
May 9, 2010 at 10:05 pm
Jeff Moden (5/9/2010)
Gosh... a properly written UPDATE takes about 3 seconds on a million rows. They sure are making you jump through hoops.
--Hehe, don't I know it!
My recommendation would...
May 9, 2010 at 9:19 pm
mister.magoo (5/3/2010)
It sounds like you have missed the "type" part of the for xml path('') statement...
Quite right sir, when I made the correction it worked beautifully. Does this command perform...
May 4, 2010 at 7:33 pm
Unfortunately another snag has kicked in. I finally got the code to work but when I apply it to the actual data I get the following error:
Cannot call methods on...
May 3, 2010 at 1:11 pm
mister.magoo (5/2/2010)
declare @test-2 TABLE (RowID int IDENTITY, Data varchar(200))
insert into @test-2
select 'some regular text' UNION ALL
select 'email: <bob.jones@domain.com>'...
May 2, 2010 at 10:46 am
Thanks guys. I just got exposed recently to the concept of Tally Tables so I took a look again and it will provide exactly what I need. Thank you!
April 30, 2010 at 5:29 pm
Jeff Moden (4/20/2010)
huston.dunlap (4/20/2010)
Then I...
April 29, 2010 at 5:21 pm
Thinking about it more I think what I will do is turn the fields into a semi colon delimited list, getting rid of the duplicate fields.
Then I can implement the...
April 20, 2010 at 8:00 pm
lmu92 (4/16/2010)
In order to understand what you mean please provide sample data and expected results that actually show what you're struggling with.
Currently, it doesn't make that much sense (to me,...
April 16, 2010 at 2:57 pm
That would work, with the only note that it tremendously increases the amount of CASE statements I need.
Because every entry is now unique to every record, the number of case...
April 15, 2010 at 8:12 pm
Thanks Jeff, that definately puts me in the right direction.
However, I do have one complication that may invalidate that direction.
One thing I did not mention in my example is that...
April 15, 2010 at 12:20 pm
Very good to know, thank you!
March 24, 2010 at 7:46 am
I tried the order by idea but I'm coming across an error. Here's some sample code.
Select 'BEGDOC' as BEGDOC
UNION ALL
SELECT BEGDOC FROM TABLE 1
ORDER BY CASE WHEN BEGDOC = 'BEGDOC'...
March 16, 2010 at 2:39 pm
I tried both of your suggestions.
The [^0-9] idea didn't work, I'm getting far more results than I should.
However, the isnumeric command worked perfectly, thank you.
March 9, 2010 at 9:13 am
Viewing 15 posts - 1 through 15 (of 29 total)