Viewing 15 posts - 2,491 through 2,505 (of 5,504 total)
In that case, either an IIF statement or REGEX should help. (Google regex or IIF in ssis for details.)
You'd basically use a script component after your data import to remove...
December 2, 2010 at 12:27 pm
You might want to search this site for "string concatenate for xml path".
I'm sure FOR XML PATH will do the trick.
December 2, 2010 at 11:51 am
Something like this?
SELECT CASE WHEN LEFT(YourCol,1) ='|' THEN STUFF(YourCol,1,1,'') ELSE YourCol END
December 2, 2010 at 11:48 am
I had a look at the Execution plan you posted.
It looks pretty straight forward.
If 50% of the time it takes is sorting 2 (two) rows in a table variable I...
December 2, 2010 at 11:34 am
tosscrosby (12/2/2010)
Junglee_George (12/2/2010)
HiHave a cup of tea & relax for 10 minutes..It works..!!
Pffftttt.....You must not be in the IT arena. Seems more like HR or accounting.....more like HR...
December 2, 2010 at 10:27 am
You could try
SUM(CASE WHEN [Year Purchased]>YEAR(DateAdd(Year, - 1, GetDate()))
THEN 1 ELSE 0 END) AS [1yr PO Line Items]
It might be a good idea...
December 2, 2010 at 5:51 am
You can simply expand your current CHECK constraint:
CHECK ((actionId IN(1,2) and associatedId is null) OR (actionId =3 and associatedId is not null))
As a side note: You should always use a...
December 1, 2010 at 12:04 pm
If possible for you could you please post the basic concept of your sproc?
Reason: Having a single sproc with a 1000 update statements calls for a review. Either the sproc...
November 30, 2010 at 4:09 pm
ALZDBA (11/30/2010)
declare @a int, @b-2 int, @c int
select @a=checksum(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)
, @b-2=checksum(10,2,3,4,5,6,7,8,9,1,11,12,13,14,15,16)
,@c=checksum(14,2,3,4,5,6,7,8,9,10,11,12,13,1,15,16)
-- Which one is closer to @a? @b-2 or @c?
-- I'm...
November 30, 2010 at 3:10 pm
looks like a missing comma before the CASE statement.
I'd also recommend to add an alias to your CASE .. END. 😉
November 30, 2010 at 2:45 pm
ALZDBA (11/30/2010)
, RwCheckSum as checksum(col1, col2, col3, col4, col5, col6, col7, col8, col9, col10,...
November 30, 2010 at 2:25 pm
Would it be possible to add a persisted computed column to each table based on col1*2^(1/8) + col2*2^(1/7)+...col16*2^7 or any other calculation that'd take the ordinal position into account and...
November 30, 2010 at 1:44 pm
and here's the set based solution (I knew there would be at least one...)
CREATE TABLE #tempWeirdExcelList
( id INT IDENTITY(1,1),
list VARCHAR(50)
)
INSERT INTO #tempWeirdExcelList(list)
SELECT ' 1400.00,"" ...
November 30, 2010 at 1:14 pm
Here's a *cough* loop version I just tried to solve that little puzzle. I'm more than confident there are much better solutions available...
Edit: a recursive CTE would be possible, too....
November 30, 2010 at 8:19 am
In general, both options you described can be used.
However, the xml sample you provided cannot be shredded into separate columns.
The reason is the multiple declaration of the default namespace. (xmlns="http://guidewire.com/typelists"...
November 30, 2010 at 2:18 am
Viewing 15 posts - 2,491 through 2,505 (of 5,504 total)