Forum Replies Created

Viewing 15 posts - 451 through 465 (of 819 total)

  • RE: CONCAT 1

    Nick Doyle (8/22/2013)


    I don't agree that it encourages sloppy coding. You need to know how a language works and be a decent coder to not be sloppy. I...

  • RE: TSQL - Identity_Insert

    In the past 10 years, I played a lot with SET identity_insert. I'm a specialist!

  • RE: Return

    Hugo Kornelis (8/19/2013)


    Mike Dougherty-384281 (8/19/2013)


    I think I'll continue with the belief that "return" belongs at the end of a procedure. If I ever see anyone in my group using...

  • RE: SSIS 2012 -SSISDB

    cschlieve (8/13/2013)


    dhober (8/13/2013)


    Silly semantics....

    Being able to have only one catalog is still technically having one or more catalogs πŸ™‚

    That kind of thinking can get you into a lot of trouble....

  • RE: Expressions

    Very good explanation!

    Here is why the first select may return 1,-1,negative and the second only 1 and negative.

    The same side effect of "C" macros:

    #define abs(a) (a < 0?...

  • RE: Isolation levels

    Good! It's good practise to remember basic concepts!

    πŸ˜€

  • RE: SQL views

    Easy qotd, but explanation is really confused.

    Schemabinding doesn't hide the definition and users of the database could still view the definition if TDE is enabled.

    Why do you think that...

  • RE: Indexing in views

    sneumersky (7/24/2013)


    That said, there are probably other potential uses for indexed views (BI or non-BI related) than I can think of at this moment in time.

    I use indexed view to...

  • RE: Indexing in views

    Before ALTERing an INDEXED VIEW is better to save its list of indexes, because they'll be dropped.

    It would be better putting a comment in the view with the command to...

  • 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...

Viewing 15 posts - 451 through 465 (of 819 total)