Forum Replies Created

Viewing 15 posts - 31 through 45 (of 233 total)

  • Reply To: My New Resolution

    Easy enough. But I would personally assign whoever created that table with DATETIME instead of DATE to toilet cleaing duty for a week...


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: My New Resolution

    Well, there's usually not much real body to New Year's resolutions...


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: Database Snapshot Sparse Files

    Brilliant! So now those of us who answered master_files are flagged as giving a completely incorrect answer, rather than an equally correct alternate answer.


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: Database Snapshot Sparse Files

    I concur.


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: Default Masking

    Dearie me!

    Reading the exact same doccumentation pointed out in the reference, I deduced that the result should be 'x' for the single char column, and 'xxxx' for the longer column,...


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: Concatenating Dynamic SQL

    Yeah, I think I'll sit this one out for a bit...


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: Index fragmentation on all databases

    Ooops!

     

    This isn't the first time I've accidentally clicked on the "Featured Script" link instead of the "Question of the Day" link. And to add to my confusion, I misread  "Can...


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: Index fragmentation on all databases

    You know, I kind of prefer the kinds of questions where there is a way to answer the question 😀


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: Sorting in R

    Well, this doesn't make sense. If 'radix' sort is named the fastest method for vectors of integers, and this is the method selected for those when 'auto' is specified, then...


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: How Many Rows Inserted?

    Interesting.

    How I parsed this is :

    • The explicit BEGIN TRAN increases the @@TRANCOUNT to 1.
    • The INSERT increases it to 2.
    • The COMMIT decreases it to 1
    • The SELECT ......


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: Finding the last month's values

    As far as I can tell, there are actually two correct answers to this one. Both

    LEAD(currMonthSales) OVER (ORDER BY saleyear DESC, salemonth DESC) AS prevSales

    and


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: Self-numbered primary key creation

    I'm sorry, but I just don't understand what is being asked here.


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: Enumerate the Python List

    Doh!

    Didn't spot the start at 1 condition. More coffee!


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: UTF8 and varchar lengths

    Yep. I think this stems from the how the original character wasn't an actual question mark, but rather an extended character, which the font used to present the question couldn't...


    Just because you're right doesn't mean everybody else is wrong.

  • Reply To: Setting Affinity

    Also, for SQL Server 2019, you should use ALTER SERVER CONFIGURATION SET PROCESS AFFINITY CPU=;

    https://docs.microsoft.com/en-us/sql/t-sql/statements/alter-server-configuration-transact-sql?view=sql-server-ver15

    The sp_configure option will be deprecated.

    • This reply was modified 5 years, 7 months ago by Rune Bivrin.


    Just because you're right doesn't mean everybody else is wrong.

  • Viewing 15 posts - 31 through 45 (of 233 total)