Viewing 15 posts - 16 through 30 (of 67 total)
Bingo - this one works just as I expected it to....
July 31, 2009 at 1:37 pm
Thanks for the reply Drew.
The data set I have given is artificial - so that we can attack the core quickly. Trust me, I have 'heavily' simplified the
structure of the...
July 31, 2009 at 1:35 pm
Ouch .... I thought it was apparent.... but I should have been clearer about what I am expecting.
I am expecting just the combinations that are missing from the #foo table.
So...
July 31, 2009 at 1:30 pm
Nice ... I like squeezing the last drop of juice from my machine too 🙂
June 27, 2009 at 3:45 pm
Thanks Jeff...
I modified the code...
For those interested, it reads thus:
Select
batchID As BatchID
, Min(Case When paramName = 'outfolder' Then paramValue Else NULL End) As OutFileLocation
, Min(Case When paramName = 'outfile' Then...
June 26, 2009 at 9:02 pm
I must be feeling the friday effect .... for those interested , here is the fix:
select batchID, [outfolder], [outfile]
from (Select batchID, paramName, paramValue From #foo) tmp
Pivot
(Max(paramvalue)
for paramName in (outfolder, outfile)
)...
June 26, 2009 at 11:35 am
You want to do this via script only?
I normally do this via DTS menu in SQL 2005....
May 18, 2009 at 12:23 pm
Ok. I just found out that removing the unused columns removes the nulls too.
So I think I am back in business.
But why would those unused columns have any impact on...
April 22, 2009 at 9:45 am
I want to avoid the IN clause as I have heard it is not efficient.
The table above is a heavily simplified version of a table that has hundreds of thousands...
April 18, 2009 at 10:32 am
I think you should check out xp_cmdshell. You can then create your own exe to read the registery and call it from the shell.
March 25, 2009 at 5:18 pm
I am at work so cannot spend too much time on this....
Something along the following lines should work:
declare @input varchar(30)
declare @output varchar(900)
set @input = 'ThisIsNotGood.ButWillCheckItOut'
select @output = case
When ascii(substring(@input,...
March 19, 2009 at 10:02 am
It should be.
I think you can use STUFF() function for that.
Use that at index of each character that is an uppercase.
PS:
The only reason I feel lazy to write the script...
March 19, 2009 at 9:11 am
Viewing 15 posts - 16 through 30 (of 67 total)