Forum Replies Created

Viewing 15 posts - 181 through 195 (of 521 total)

  • RE: Comparing a hash

    Now this one still bothers me...

    Why does it execute the no part after the 8125 error?

    By the way, it only executes it with the following SET options:

    SET XACT_ABORT OFF

    SET ANSI_WARNINGS...

  • RE: Rowcount

    Well, you got me - I confess - I cheated at least once in the QotDs.

    But that is probably true for most of us - sometimes we just cannot withstand...

  • RE: Rowcount

    Wow, so many replies - I'd chime in and say the answer is:

    NULL

    Reason:

    The previous statement is unknown, therefore the outcome of the first SELECT @@ROWCOUNT is unknown, therefore the whole...

  • RE: Query cost

    Well, the whole point here probably is that SQL Server nowadays has no issue transforming many query types (especially these simple two liners), which are semantically equivalent. Therefore the plans...

  • RE: T-SQL

    SSSolice (1/7/2010)


    In light of all the confusion, I respectfully apologize to everyone for not making the question more clear in the first place.:blush:

    Well you posted a question and I thank...

  • RE: T-SQL

    Hm this is still not correct - and even more important - I made an error myself - the IN clause is not only the list of values, it also...

  • RE: T-SQL

    Sorry, but "IN" standalone is not a predicate, especially in the case where you have to decide between answers operator and predicate. Explanations (and distinctions between the terms) were given...

  • RE: T-SQL

    Dave62 (1/7/2010)


    I can understand the confusion with this question since msdn refers to IN many different ways. A number of msdn links have already been posted to defend different...

  • RE: T-SQL

    I agree that the given answer is wrong.

    IN is an operator but can be used in an expression like "a IN (1,2,3)".

    The expression in this case is a predicate, and...

  • RE: SELECT @local_variable

    honza.mf (12/14/2009)


    Christian Buettner-167247 (12/14/2009)


    Hm, is someone able to explain this?

    Same code as before, but positioned order by (1 instead of i) and "-" as separator for better readability.

    As said in...

  • RE: SELECT @local_variable

    Hm, is someone able to explain this?

    Same code as before, but positioned order by (1 instead of i) and "-" as separator for better readability.

    SET NOCOUNT ON

    create table #xxx (i...

  • RE: Indexes

    Please note that the data of this table fits in one data page - therefore a table scan is nothing more than reading one page of data. And doing row-id...

  • RE: Fixed to varying length

    This was a very nice one! Out of curiosity - did you realize this via testing or is there official info somewhere in BOL?

    Here is some stats for those interested:

    name...

  • RE: Conversion Fun

    That is actually a good question and unfortunately I have no idea 🙁

  • RE: Conversion Fun

    kevin.l.williams (8/7/2009)


    isnumeric is just evaluating valid characters.

    This will produce 1 also

    select isnumeric('-$,')

    Hi Kevin,

    I think that is not true.

    Try select isnumeric('$$') for example.

    It will evaluate to false, although this character...

Viewing 15 posts - 181 through 195 (of 521 total)