Forum Replies Created

Viewing 15 posts - 541 through 555 (of 819 total)

  • RE: Partitioned index

    L' Eomot InversΓ© (11/2/2012)


    Nice straightforward question.

    Surprised it's 3 points, though; it's rather easy.

    ++1 πŸ˜€

  • RE: LEAD - 1

    vk-kirov (10/30/2012)


    Thanks for question about the new feature of MSSQL 2012!

    ++1

    πŸ˜€

  • RE: Parsing values in the WHERE clause

    I get it right, but the explanation is completely wrong. The syntax for IN clause is or specify a subquery or a list of EXPRESSIONS. ONE expression can have multiple...

  • RE: Inner Join

    If all the rows get matched then the query will act as a cross join.

    I think the explanation is incomplete and inaccurate.

    INNER JOIN returns number of rows from left table...

  • RE: Tracking Processes

    I get it right, but

    rVadim (9/20/2012)


    DiskIO in sp_Who2 means reads and writes combined, not just reads as question asks.

    +1

  • RE: Backups

    You need add the clause "FORMAT" to succeed the second statement!

    BACKUP DATABASE TestDatabase_1

    TO DISK = 'C:\TestDatabaseBackup.BAK'

    WITH COMPRESSION

    GO

    BACKUP DATABASE TestDatabase_2

    TO DISK = 'C:\TestDatabaseBackup.BAK'

    ...

  • RE: Administration

    Thanks!

    πŸ™‚

  • RE: T-SQL Syntax

    Maybe, you miss the UPDATE clause:

    declare @mykey int

    update top 1 mytable set

    @mykey = mykey

    where status = 0

    print @mykey

  • RE: Learning C

    I agree with Steve. C and C++ help to understand how to handle memory/cpu/io/other devices. They help to develop very good performance applications or batch processing.

    In 1986, I started with...

  • RE: Commenting in Dynamic query

    paul.knibbs (8/3/2012)


    All you've proved there is that a 45-character string can't ever be longer than 45 characters. Try adding PRINT @STR1 and you'll see that the string has lost the...

  • RE: Commenting in Dynamic query

    Koen Verbeeck (8/3/2012)


    Indeed, the correct answer is 1,0,1,error, because the last query produces a syntax error. Shame, because it was a pretty good question otherwise.

    Points back please πŸ™‚

    No, the last...

  • RE: Rename column

    You can't rename a PERSISTED computed column, too!

    Why?

  • RE: Snapshots

    I poke the wrong answer, but I learned something new.

    Thanks.

    πŸ˜€

  • RE: Database

    Good: Correct answers: 95% (70)

    I never saw a qotd with 100% of correct answers.

  • RE: NULLIF 1

    By the way:

    I often use NULLIF when 3rd party application use MAGIC VALUES instead of NULL.

    e.g. 1799-12-31 stands for NULL DATETIME.

    Here's a generic example to get an actual...

Viewing 15 posts - 541 through 555 (of 819 total)