Forum Replies Created

Viewing 15 posts - 2,251 through 2,265 (of 3,544 total)

  • RE: My Favorite SSCer

    quoteWhere are the suck-ups? No votes for Andy, Brian or myself....

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: My Favorite SSCer

    quoteIt would be nice if the posters acknowledged that the solution worked....

    Couldn't agree more

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: problems with spaces

    quote....if VARCHAR then you WONT

    Not entirely true.

    varchar columns may or may not have trailing spaces, they...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: My Favorite SSCer

    quoteWell I'd vote for myself so I get at least one vote

    That goes without saying

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: My Favorite SSCer

    quoteThat might start a little war... not sure it's a good idea.

    Is that because you might...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Compound Select to concat rows to 1 column

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Compound Select to concat rows to 1 column

    np, sets a challenge to rethink the solution, always a good idea

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: MS SQL 2000 Query Analyzer and Full-Text Indexing Query?

    Remi is right in that the queries are not the same

    CONTAINS(ArticleDescription, 'magazine')

    is the same as

    LIKE '% magazine %'  (yes there is a space either side of the word...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Compound Select to concat rows to 1 column

    Any string manipulation is slow and it is all relative to the size of the dataset

    therefore another alternative

    SET @RefDes = ''

    select  @RefDes...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Query help for results order

    SELECT *

    FROM Products WHERE ProductID IN (31, 5, 7, 9, 12)

    ORDER BY CHARINDEX(', '+CAST(ProductID as varchar)+',',','+'31, 5, 7, 9, 12'+',')

    or if using variable/parameter

    DECLARE @ID varchar(100)

    SET @ID...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Compound Select to concat rows to 1 column

    SET @RefDes = ''

    select  @RefDes = @RefDes +

      CASE WHEN CHARINDEX(','+ref_des+', ',','+@RefDes)>0 THEN '' ELSE ref_des + ', ' END

    from  A 

    right outer JOIN

        B ON A.job...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Widest table

    1022

    daily dts import from 3rd party database

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Convert various dates to 2 INT columns

    WHEN PATINDEX('[0-9][0-9][0-9][0-9][.]',CardExpDate) > 0 THEN STUFF(LEFT(CardExpDate,4),3,0,'20')

    p.s. you can do the RTRIM as well if you wish

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Convert various dates to 2 INT columns

    quoteThe column should be rtrimed automatically if you have a [n]varchar column

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Convert various dates to 2 INT columns

    Works OK for me, what result do you get (or do you get an error?)

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 2,251 through 2,265 (of 3,544 total)