Forum Replies Created

Viewing 15 posts - 16 through 30 (of 67 total)

  • RE: find missing records only

    Bingo - this one works just as I expected it to....

  • RE: find missing records only

    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...

  • RE: find missing records only

    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...

  • RE: pivot problem

    Nice ... I like squeezing the last drop of juice from my machine too 🙂

  • RE: pivot problem

    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...

  • RE: pivot problem

    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)

    )...

  • RE: How to transfer the data from Excel to SQL2005

    You want to do this via script only?

    I normally do this via DTS menu in SQL 2005....

  • RE: A pivot issue

    Thanks GSquared ... This works as well..

  • RE: A pivot issue

    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...

  • RE: Fairly simple subtraction issue

    Thanks Lynn, this works splendid...

  • RE: Fairly simple subtraction issue

    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...

  • RE: Read Registry

    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.

  • RE: Insert spaces before upper case characters

    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,...

  • RE: Insert spaces before upper case characters

    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...

  • RE: A kinda running total problem??

    Awesome.

    Thanks a ton 🙂

Viewing 15 posts - 16 through 30 (of 67 total)