Forum Replies Created

Viewing 15 posts - 4,096 through 4,110 (of 10,144 total)

  • RE: Distinct Select

    SELECT

    p.ProjectName as PName,

    man.UserName AS Manager,

    dev.UserName AS Developer

    FROM @project p

    CROSS APPLY (

    SELECT STUFF( (

    SELECT ', ' + man.UserName

    FROM @Manager m

    INNER JOIN @User man

    ON m.Managerid = man.Userid

    WHERE...

  • RE: Are the posted questions getting worse?

    GilaMonster (8/23/2013)


    ChrisM@Work (8/23/2013)


    Do you know which granite, Gail?

    It's mostly dark red with black specks.

    Ah, "English Barbecue" granite.

  • RE: Are the posted questions getting worse?

    GilaMonster (8/23/2013)


    Fal (8/22/2013)


    Speaking of fruit. The missus and I are getting a new kitchen in and are trying to finalise a few issues.

    We were thinking of getting a stone...

  • RE: Are the posted questions getting worse?

    dwain.c (8/22/2013)


    Fal (8/22/2013)


    Speaking of fruit. The missus and I are getting a new kitchen in and are trying to finalise a few issues.

    We were thinking of getting a stone...

  • RE: Searching Address by Ranges

    Bill Talada (8/22/2013)


    I still strongly disagree. UDFs are much, much easier to incrementally add customization rather than throw away a CTE because it can no longer be used because...

  • RE: Searching Address by Ranges

    Bill, it's not a personal thing, we all make mistakes. The point of folks posting faster and more efficient code samples is that any posted code here in ssc could...

  • RE: Today's Random Word!

    L' Eomot Inversé (8/21/2013)


    SQLRNNR (8/21/2013)


    sea-arrow

    akaika

    Calamari

  • RE: query is taking long time to run

    Post the definition of the object tmp_Brad_Product_Configuration_12months. Without knowing what it is, it's difficult to answer your question with any degree of confidence.

  • RE: Eliminate Cursor

    Cadavre (8/21/2013)


    ChrisM@Work (8/21/2013)


    Now that was a great presentation. Watch and enjoy the show, Kapil, and work through a few examples.

    I enjoyed it, found some of the questions in the audience...

  • RE: Eliminate Cursor

    Cadavre (8/21/2013)


    kapil_kk (8/21/2013)


    Cadavre (8/21/2013)


    kapil_kk (8/21/2013)


    Koen Verbeeck (8/21/2013)


    Sure. This is one of the examples where you don't need a tally table.

    You can replace the logic beneath @bit = 1 with one...

  • RE: Avoid LEFT join

    npranj (8/21/2013)


    Yes thanks for highlighting that. I did check the indexes on the table. There is a covering index in place already. I was getting an index scan on that...

  • RE: Avoid LEFT join

    npranj (8/21/2013)


    Hi Chris.. am afraid will not be able to put the execution plan of the query here due to confidentiality issues.

    However, the exec plan had all Index Seeks and...

  • RE: Avoid LEFT join

    npranj (8/20/2013)


    I am facing issues with a LEFT JOIN in my query. It takes 45 secs to process on the production server due to huge number of records. Need help...

  • RE: Add PK CLUSTERED to existing table with dependencies

    ScottPletcher (8/20/2013)


    ChrisM@Work (8/20/2013)

    A primary key doesn’t have to be indexed

    I thought it did. Doesn't SQL always create an index to enforce a PK?

    It has to be indexed to work...

  • RE: Add PK CLUSTERED to existing table with dependencies

    A primary key doesn’t have to be indexed, although SQL Server will create a unique clustered index on a PK by default; likewise, the clustered index doesn’t have to be...

Viewing 15 posts - 4,096 through 4,110 (of 10,144 total)