Viewing 15 posts - 256 through 270 (of 3,957 total)
DECLARE @XML TABLE
(
XML1 XML
);
INSERT INTO @XML
SELECT CAST(
'<ActivityDescription>
<text value="PCN was initiated for Policy ^1 on 12/07/2015. Cancellation Date is: 12/23/2015. Amount needed...
March 13, 2015 at 1:37 am
MLK44 (3/12/2015)
.
+1. What's worse: bad comments or no comments?
March 12, 2015 at 11:38 pm
Absolutely the worst comment I have ever seen in code, and it was all over the place at one previous shop I worked at:
-- Process data
It wasn't in SQL though....
March 12, 2015 at 10:48 pm
Assuming that you've fixed your data anomalies by now, you might want to take a look at this article:
Self-maintaining, Contiguous Effective Dates in Temporal Tables[/url]
It gives you a way to...
March 12, 2015 at 8:08 pm
Just for fun, here's a way to do it using the pattern-based string splitter described in my signature links:
SELECT FirstName = MAX(CASE ItemNumber WHEN 1 THEN Item...
March 12, 2015 at 6:29 pm
Here it is extracted as a character string:
DECLARE @XML XML =
'<ActivityDescription>
<text value="PCN was initiated for Policy ^1 on 12/07/2015. Cancellation Date is: 12/23/2015. Amount needed to rescind PCN...
March 12, 2015 at 6:10 pm
coalesceuk (3/11/2015)
March 11, 2015 at 10:33 pm
Alan.B (3/11/2015)
dwain.c (3/11/2015)
Calendar Tables in T-SQL[/url]
The GenerateCalendar FUNCTION included in that article shows how...
March 11, 2015 at 6:36 pm
This is quite easy to do if you already have a calendar table that stores that information:
Calendar Tables in T-SQL[/url]
The GenerateCalendar FUNCTION included in that article shows how it can...
March 11, 2015 at 5:56 pm
Why can't you do this?
CREATE TABLE #Temp
(
ID INT...
March 11, 2015 at 5:48 pm
You can probably save yourself a couple of scans by changing CTE c1 as follows:
with c1 as --Get all the events in a row
(
select --Start Date of Employees on Projects
p.ProjectId
,t
,ProjectIncrement
,MeetingIncrement
from...
March 11, 2015 at 12:41 am
coalesceuk (3/10/2015)
dwain.c, I probably didn't explain it too well, and my attempt to anonymise/simplify what I'm really trying...
March 10, 2015 at 7:40 pm
Erikur,
Thanks for continuing to play around with it. I did too and I am getting some inconsistent results with DelimitedSplit8K using my original approach. I believe this is...
March 10, 2015 at 6:49 pm
Eirikur Eiriksson (3/10/2015)
dwain.c (3/10/2015)
March 10, 2015 at 1:56 am
Viewing 15 posts - 256 through 270 (of 3,957 total)