SSMS Error Message

  • zerko (5/27/2013)


    But surely, since ALL of us ALWAYS screen-lock our computers when we are not physically present, and the error message required someone else to type it into the SSMS Messages screen, the correct answer would have to be "That could not possibly happen! :w00t:"

    We do do that, don't we?

    Well, yes, but

    Do we always remember to have a secure BIOS password? Or even have a BIOS password at all?

    Do we remember to leave the computer setup so that it will only boot from the main hard drive, not from a pen-drive, DVD, CD, or any other replaceable media?

    If any of those 3 gets the answer "no" then this stunt is rather easy.

    Besides, locking the computer when you leave is not very effective if half (or more) of your colleagues know your password, or it's one of the top 20 preferred passwords for your gender, or it's scribbled on a post-it note stuck to the underside of your mouse-mat because your employer's lunatic security policy requires passwords to have at least 12 characters each and at most 16 and pass a "strength" test and forces you to change them every 15 days with your last 293 passwords remembered by the system and not reusable. Those sorts of insecurities with passwords used to be extremely common, but I think it's got slightly better and they now are only rather common (although that might just be undue optimism on the part of people who tell me what it's like in their organisations now).

    Tom

  • Easy question and more over its fun. I also had done this in many times.

    Malleswarareddy
    I.T.Analyst
    MCITP(70-451)

  • Nice question and quite comical. Fluked it really as I didn't note the bit in BOL "between 50,001 and 2,147,483,647" for the @msgnum. Thanks.

    Dave Morris :alien:

    "Measure twice, saw once"

  • Perhaps I put too much thought into this, since I figured that we all actually do lock our computers when we're not using them. I missed it, but also learned that you can type into the messages pane, which I've never done. Good trick question.

  • Being that my name is Dave, I always wonder when I see messages like that 🙂

  • I'm pretty sure the first answer could be correct as well...

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • mohammed moinudheen (5/26/2013)


    Got tricked 🙂

    +1

  • Mighty (5/27/2013)


    Nice start of the week.

    One remark though:

    ...if you run code that generates an actual error

    This not only works when an error has been generated. Any message that is returned will enable it like the famous

    (1 row(s) affected)

    +1

  • Nice one...

  • A bit late 😉 I nearly picked option 3 'sp_addmessage' luckily realising it must have an ID between 50,001 and 2,147,483,647

    Option 4 & +1 it is...

    MCTS | MCITP | Microsoft SQL Server 2008 Administration & Development
    MCSA | MCSE | Business Intelligence SQL Server 2012

  • but can't type with red color.

  • catus0124 (5/29/2013)


    but can't type with red color.

    You can't create red color in an empty message pane. But if you first execute a statement that will generate an error, then type new text in the middle of the red error message and delete the old error text, your typed text will be in red.


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • I love learning something and having fun at the same time. Good question! :hehe:

  • Loved the fun question! Thanks!

    Carlo:

    Carlo Romagnano (5/27/2013)


    SQLRNNR (5/26/2013)


    Easy enough - I have done this in the past.

    +1

    In 80's, on mainfraim I placed the prompt with:

    "ADVANCED COBOL '85. COMPILING SOURCE ... SGCONT.CBL"

    So, it seemed a neverending compile, instead it was ready!

    :-D:-D

    I am getting the impression that you have a lot more practical jokes up your sleeve! 😉

  • Did not got it correct... 🙁 Thank god no one played this prank with me... 🙂

    --Angad Singh
    If I Stop Learning, I Cease to Be A SIKH !

Viewing 15 posts - 16 through 30 (of 32 total)

You must be logged in to reply to this topic. Login to reply