Forum Replies Created

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

  • RE: Get the full name

    That was an easy one, thanks! You could also solve this query with CONCAT. 🙂

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: Partition elimination and variables

    It's a classic implicit conversion issue. SQL Server will never convert a "bigger" datatype to a smaller.

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: Column aliases

    Well it's still possible to write the alias in 12 different ways in SQL2014 (deprecated or not) 🙂

    SELECT object_id AS test

    FROM sys.columns AS mt;

    SELECT object_id AS 'test'

    FROM sys.columns...

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: Missing indexes in current requests

    SQL Guy 1 (10/7/2014)


    Great script, I liked it. Even though it returns results only for queries that being executed at the current moment, it's good.

    From Text field I can...

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: Friday Shirts

    Interesting SQL server question! I learned something new today. 🙂

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: DONEPROC

    Interesting question! Never heard of it and got It wrong, but I learned something new. Thank you!

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: Random unions

    TomThomson (10/23/2014)


    Amusing question; the use of RAND is an interesting distraction for a question that is really about UNION ALL and nothing else.

    I agree! It would have been UNION instead...

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: Template parameters

    Thanks for the easy one. 🙂 I've used template files a lot and I love them.

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: Unpivot

    Mighty (10/16/2014)


    0 points out of 2. Will try to select an incorrect answer tomorrow to see if I get a point. 😛

    Excellent idea! 🙂

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: Unpivot

    Vimal Lohani (10/15/2014)


    twin.devil (10/15/2014)


    Comments posted to this topic are about the item <A HREF="/questions/unpivot/117130/">Unpivot</A>

    HAHA,

    Still wrong answer

    admin has not tested it.

    Answer should be two rows.

    OrderIDProductNameProductQty

    1 ...

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: Create a stored procedure

    Toreador (10/15/2014)


    paul.knibbs (10/15/2014)


    I mean, the error about incorrect syntax near "FROM" isn't one of the available answer options, so it should be pretty obvious that's not what was intended.

    It would...

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: THROW defaults

    That was an easy question. 🙂 Thank you for that point.

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: Row limits

    Ed Wagner (10/3/2014)


    SqlMel (10/3/2014)


    But I must say that I do not use this feature in my coding.

    I haven't either. I'd use TOP myself, but this is another nice tool...

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: Ranking

    Sean Pearce (10/1/2014)


    Roland C (10/1/2014)


    Another badly redacted question ! It gets a little boring :doze:

    You could always submit your own question.

    I agree with you. I Think it's hard to create...

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

  • RE: raiserror level

    Eirikur Eiriksson (10/1/2014)


    Thank you for the question Steve.

    Slightly off topic, prefer using RAISERROR to PRINT for progress reporting on long running scripts as it is almost instant and the printf...

    /Håkan Winther
    MCITP:Database Developer 2008
    MCTS: SQL Server 2008, Implementation and Maintenance
    MCSE: Data Platform

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