Forum Replies Created

Viewing 15 posts - 2,281 through 2,295 (of 8,731 total)

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (8/18/2016)


    Luis Cazares (8/18/2016)


    We've got new laptops today at the office. Mine is missing SSMS. I guess I'll have to wait to be productive for some...

  • RE: SQL Pivot Assistance Needed

    If you're going to generate the pivot in excel, just query the normalized data and create the pivot there. You can create a view which could be the source for...

  • RE: Are the posted questions getting worse?

    We've got new laptops today at the office. Mine is missing SSMS. I guess I'll have to wait to be productive for some days (weeks?)

  • RE: Confused about backups and recovery models

    andrew gothard (8/17/2016)


    Very briefly:

    Full -

    allows you to restore to a point in time - say 4 seconds past 5 this afternoon when someone accidentally...

  • RE: Rounding in tsql

    I did test as well.

    CREATE TABLE #Test(

    Units decimal(10,5),

    DesiredResult decimal(10,5),

    );

    INSERT INTO...

  • RE: Rounding in tsql

    ntreelevel (8/17/2016)


    This is the custom case statement that I used

    case when (units - floor(units)) < 0.49 then round(units,2)

    when...

  • RE: Are the posted questions getting worse?

    ChrisM@Work (8/9/2016)


    TomThomson (8/9/2016)


    Phil Parkin (8/9/2016)


    This code was generated by a tool.

    Does anyone else subconsciously say "You can say that again" whenever they read this comment in auto-generated code? 🙂

    It's more...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (8/17/2016)


    Eirikur Eiriksson (8/17/2016)


    BrainDonor (8/17/2016)


    ChrisM@Work (8/17/2016)


    We have git hubs all over the UK. They're also known as Weatherspoons.

    You owe me a new keyboard...

    😀

    ...just managed to save mine

    😎

    I have apparently...

  • RE: Re-ordering a Sequence

    An additional clause should do the trick.

    WITH CTE AS(

    SELECT *, ROW_NUMBER() OVER( ORDER BY CASE WHEN seq = @OldSeq THEN @NewSeq

    ...

  • RE: Re-ordering a Sequence

    What about this?

    create table #temp(seq int,step varchar(50))

    insert into #temp (seq,step) values (1,'do this first')

    insert into #temp (seq,step) values (2,'then do this')

    insert into #temp (seq,step) values (3,'finally do this')

    insert into #temp...

  • RE: Re-ordering a Sequence

    adam-639168 (8/16/2016)


    Hello, I have a table where users enter action steps. The SEQ column indicates the step # (step 1, step 2, etc.). I am having trouble updating...

  • RE: Today's Random Word!

    whereisSQL? (8/16/2016)


    Ed Wagner (8/16/2016)


    Ray K (8/16/2016)


    Ed Wagner (8/16/2016)


    whereisSQL? (8/16/2016)


    HappyGeek (8/16/2016)


    Grumpy DBA (8/16/2016)


    Y.B. (8/16/2016)


    Pop

    Soda

    Water

    Ice

    Broken

    Wings

    Hot

    Buffalo

    Bison

  • RE: Query plan analysis

    I'd say that a bad plan is when estimates aren't similar to reality. That would cause choosing the wrong operation.

    There's no such thing as a bad operator, there are only...

  • RE: need to copy a 600 gig table

    Jeff Moden (8/16/2016)


    Luis Cazares (8/12/2016)


    but minimal logging can make the log grow even more than normal logging

    I've never seen actual minimal logging cause such a thing especially since about the...

  • RE: Rounding in tsql

    ntreelevel (8/16/2016)


    Hi all, Thank you for the answers but I figured out that using a case statements for custom rounding is the best way and it worked out

    Do you mean...

Viewing 15 posts - 2,281 through 2,295 (of 8,731 total)