Forum Replies Created

Viewing 15 posts - 1 through 15 (of 219 total)

  • RE: T-SQL counts

    Jeff Moden (10/1/2013)


    For 2005, the correct answer is "4". For 2008 and above, the correct answer is 3.

    I'm not sure which build of 2005 are you using, but I've...

  • RE: Precision required

    Richard Warr (3/14/2013)


    Interestingly, if I run the code, I get:

    Msg 242, Level 16, State 3, Line 1

    The conversion of a varchar data type to a datetime data type resulted in...

  • RE: INNER JOIN

    Evgeny Garaev (3/12/2013)


    Right answer is wrong in this case. Beacause some rows could be returned. This query will prove my words:

    Very good script, although it produces a huge amount of...

  • RE: Creating Tables

    binod.soft (2/10/2013)


    remove all the GO syntax to execute the whole Query in a single Batch

    I agree with you. The wording of the question is totally misleading.

    demonfox (2/10/2013)


    All the following statements,...

  • RE: Number of Rows

    Dineshbabu (1/18/2013)


    If we run the profiler before clicking Display Estimated Execution Plan, we can see SHOWPLAN_XML option is set to ON.

    I think due to enabling this set option we...

  • RE: Five percent rounded down

    L' Eomot Inversé (1/11/2013)


    Even if people were just making random guesses

    The first two answers (100, 105, 105 and 105, 105, 105) cannot be considered as random guesses. So the further...

  • RE: STUFF - 1

    Another question about different stuff 🙂

    An interesting example of inserting one string into another. Never thought it could be done that way. I always did it using something like

    SELECT LEFT(@string1,...

  • RE: Usage of @@ERROR in Transaction

    seankyleprice (11/16/2012)


    Best Practice for 2008 onwards is surely to use TRY CATCH as suggested by Stewart. For 2005 and prior I agree that the method suggested by Carlos would be...

  • RE: Nanoseconds

    Lon-860191 (11/8/2012)


    Good question, but I would question if a method is reliable if it does not work less than 1/3 of the time daily, method 2 overloaded at 8 am...

  • RE: character ordering

    L' Eomot Inversé (11/1/2012)


    Actually, I suspect that the correct way to write the condition, because a collate clause applies only to a single column or constant or variable, is

    ...

  • RE: character ordering

    Nils Gustav Stråbø (11/1/2012)


    vk-kirov (11/1/2012)


    Note that the QOD query will return 139 characters if it runs on a database with the Latin1_General_CI_AS (or similar) collation. When running on a database...

  • RE: character ordering

    Note that the QOD query will return 139 characters if it runs on a database with the Latin1_General_CI_AS (or similar) collation. When running on a database with another collation, the...

  • RE: Halloween Protection

    craig 81366 (10/31/2012)


    GilaMonster (10/31/2012)


    You can't insert or delete a row multiple times

    I beg to differ

    ...

    that spool is essential to protecting against deleting more rows than expected

    "Delete a row multiple times"...

  • RE: LEAD - 1

    Thanks for question about the new feature of MSSQL 2012!

    Lokesh Vij (10/29/2012)


    Hey Ron, There seems to be some confustion with answer choices here. When we have ORDER BY caluse on...

  • RE: Duplicate Foreign Key

    wdolby (10/23/2012)


    When would a duplicate foreign key be used?

    I think there's no practical purpose in such duplicate foreign keys. Some RDBMSs even do not allow these FKs. For example, you'll...

Viewing 15 posts - 1 through 15 (of 219 total)