Forum Replies Created

Viewing 15 posts - 481 through 495 (of 3,348 total)

  • RE: Performance issue with Query

    With the liberal use of NOLOCK, it is quite likely that this query will return incorrect results. Make sure the query does what it should do first, then worry about...

  • RE: Today's Random Word!

    Grumpy DBA (4/15/2016)


    crookj (4/15/2016)


    Revenant (4/15/2016)


    Ed Wagner (4/15/2016)


    Shipwreck

    Exxon

    spill

    Drunk

    Scotch

  • RE: Today's Random Word!

    Manic Star (4/15/2016)


    djj (4/15/2016)


    Grumpy DBA (4/15/2016)


    jeff.mason (4/15/2016)


    Houlihan

    Hooligan

    Mischief

    Managed

    Wrecked

  • RE: The USE command and variables

    Sgar... (4/15/2016)


    In above examples you have used Set @dbname= 'database name'.

    I am taking this input from Stored procedure input. How can you help?

    In that case you do not need the...

  • RE: Full-Text search problem

    Sergiy (4/14/2016)


    And you can safely remove left join

    dbo.Table3 t3 on t1.Code3 = t3.Code3 and

    t3.Code4 = 1

    left-joined table is not gonna affect COUNT(*) in any way.

    Woah, careful there!

    This statement is...

  • RE: ISNULL VS COALESCE on nullible and not null columns Sargability comparison

    TheSQLGuru (4/15/2016)


    Wrapping a function around a column in the WHERE clause is probably the second worst thing I see in aggregate in my consulting (with the first being mismatched data...

  • RE: Order by a CASE statment order

    Kazmerelda (4/15/2016)


    Hugo, can I ask what was sloppy about my code?

    Heh! Gail (Gilamonster) pointed out way more things than i would have. Truth is, I never inspected the entire query,...

  • RE: Type Conversion may affect Cardinality Estimate

    Can you post the execution plans for the query on the two servers? (Actual plan, please, not the estimated - after running with the option to include the actual execution...

  • RE: Log Shipping Information

    Aaawwww, I lost the 50/50.

    #NeverLucky :rolleyes:

  • RE: Today's Random Word!

    Ed Wagner (4/14/2016)


    crookj (4/14/2016)


    DonlSimpson (4/14/2016)


    Ed Wagner (4/14/2016)


    Manic Star (4/14/2016)


    Ed Wagner (4/14/2016)


    djj (4/14/2016)


    Grumpy DBA (4/14/2016)


    ThomasRushton (4/14/2016)


    djj (4/14/2016)


    Earthquake

    Volcano

    Hurricane

    Wind

    Tornado

    Wizard

    Potter

    Putter

    dilly-dally

    Delay

    Train

  • RE: Are the posted questions getting worse?

    Ed Wagner (4/14/2016)


    SQLRNNR (4/14/2016)


    Luis Cazares (4/14/2016)


    Is this guy for real?

    How is it possible that he can't work out a basic DML statement and still have a job?

    Hopefully Hugo has him...

  • RE: Group By, Count, and NULLs

    Iwas Bornready (4/14/2016)


    psingla (2/2/2015)


    Good Question...

    That's why I prefer using count(1)

    I use COUNT(0). Any difference?

    No.

    The COUNT function has officially two forms. The first is COUNT(*) which self-documents that it counts rows...

  • RE: Is Date the Last Day of the Month

    CASE WHEN MONTH(YourDate) <> MONTH(DATEADD(day, 1, YourDate)) THEN 'True' ELSE 'False' END

  • RE: One Table or Several One-To-Zero Relationships?

    From database design/normalization point of view, all ideas are okay. Multiple attributes that depend on the same key can be combined in a single table or spread out over multiple...

  • RE: Why have HEAPS?

    In some specific situations, heaps offer some performance benefits over clustered indexes. One example is avoiding page splits for tables with lots of inserts and no updates. Another is that...

Viewing 15 posts - 481 through 495 (of 3,348 total)