Forum Replies Created

Viewing 15 posts - 466 through 480 (of 825 total)

  • RE: The OUTPUT clause and T-SQL Syntax

    Hugo Kornelis (7/23/2013)

    ...

    In other words - if the statement causes a trigger to fire, it should have either no OUTPUT clause or an OUTPUT clause with an INTO keyword....

  • RE: The OUTPUT clause and T-SQL Syntax

    Very very very GOOD question.

    😀

  • RE: Return

    mickyT (7/17/2013)


    Interesting question thanks:-)

    I think it also provides a good argument for the use of statement terminators or formatting scripts in a clear manor (with comments:-D).

    Batch...

  • RE: Return

    kapil_kk (7/16/2013)


    Hi,

    as per the explanation- The stmt "return (select 5)" gives error because in a batch RETURN with integer_expression is not admitted (note: PARENTHESIS cast the SELECT to an integer_expression...

  • RE: SQL Server 2012 Concat

    L' Eomot Inversé (7/9/2013)


    Nice straightforward question. Good to see a question about another new feature in SQL 2012.

    However, introducing a weird ODBC function into T-SQL seems to me a...

  • RE: SQL Server 2012 Concat

    Hugo Kornelis (7/9/2013)


    Carlo Romagnano (7/9/2013)


    select concat(null + 'Hello','testString') as a

    , null+'testString' as b

    It simply returns 'testString', NULL

    😀

    Yup. If you wanted to get 'HellotestString', you'd use...

  • RE: SQL Server 2012 Concat

    Some formatting with CONCAT:

    SELECT

    concat

    (

    'Name: ',t.name

    ...

  • RE: SQL Server 2012 Concat

    select concat(null + 'Hello','testString') as a

    , null+'testString' as b

    It simply returns 'testString', NULL

    😀

  • RE: A simple trick for “Block Comment” syntax in SSMS

    Wonderfull!

    You gave me a good Idea.

    😀

  • RE: T-SQL Like

    Iggy-SQL (7/2/2013)


    To me, the explanation isn't quite right. I believe the right explanation should be something along this line:

    Statement 1 : The SQL Database Engine converted the Val value to...

  • RE: IFF - 1

    Hugo Kornelis (6/19/2013)


    L' Eomot Inversé (6/19/2013)


    After all, case-sensitive collations are an absolute pain for almost all purposes, so it might be a good idea to get people whose servers are...

  • RE: SQL CHOOSE

    matthew.flower (6/19/2013)


    It is all very well saying "re-run it with this additional line" when the returned error from the code in the question is exactly the wording of one of...

  • RE: SQL CHOOSE

    Richard Warr (6/19/2013)


    I ran the code and got:

    Msg 242, Level 16, State 3, Line 7

    The conversion of a varchar data type to a datetime data type resulted in an out-of-range...

  • RE: SQL CHOOSE

    If the statement begins with

    set dateformat ymd,

    the qotd would be perfect.

  • RE: Float Data Type

    Hugo Kornelis (6/8/2013)


    nenad-zivkovic (6/7/2013)


    From BOL http://msdn.microsoft.com/en-us/library/ms187912(SQL.100).aspx

    Avoid using float or real columns in WHERE clause search conditions, especially the = and <> operators.

    Should be "Avoid using float or real columns." Period....

Viewing 15 posts - 466 through 480 (of 825 total)