July 10, 2012 at 12:14 pm
I too thought there might be a change in 2012 and that is was a trick question. 🙂
I'm glad it wasn't.
Thanks.
July 10, 2012 at 12:48 pm
Thanks for the question. I thought, surely they wouldn't add a where clause to truncate. I didn't see how they could.
July 11, 2012 at 12:03 am
Dana Medley (7/10/2012)
Thomas Abraham (7/10/2012)
Thanks for the question Samith. I'm guessing you specified an SQL Server version to avoid problems that occasionally pop up with QotD's that don't specify the version. In this case, it actually made the question less straightforward. But, you likely gathered that from the earlier posts. In summary,+57.
+57 + 1
For a moment I had my doubts and thought "maybe it did change? Surely the QotD wouldn't be this easy. There has to be a catch." But, I went with what I knew and it was right. Thank you for the great question. QotD always gets my day started right. 😀
+42
Nice question though.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
July 11, 2012 at 2:54 am
KarenM (7/10/2012)
I too thought there might be a change in 2012 and that is was a trick question. 🙂I'm glad it wasn't.
Thanks.
+1 🙂
Thanks
July 11, 2012 at 2:58 am
I Think these type of stupid questions should move to 'humor' category 😛
July 11, 2012 at 3:03 am
Dear Jamshi
I think u got wrong answer:-P
[font="Verdana"] There is no Wrong time to do a Right thing 🙂 [/font]
July 25, 2012 at 6:42 pm
john.arnott (7/10/2012)
I nearly bit at the implication that SQL 2012 added syntax to allow truncating a table that met certain conditions. Had to find BOL 2012 online to disuade myself of that notion.
I was tempted to be confused because I don't have 2012, but then thought "if you could put a where clause on truncate table then that would be the thin end of the wedge for a where clause on other DDL statements" and my mind was sufficiently boggled :crazy: :sick: at the consequences that I didn't bother to check BoL.
Edit: writing this made me ask myself how I knew that MS hadn't reclassified TRUNCATE TABLE as DML (so permitted a where clause) instead of DDL. So maybe I got the right answer by carelessly ignoring a bizarre but maybe possible option - but if I'd considered that option I would have assigned it too low a probability to make me check BoL anyway.
Tom
August 8, 2012 at 12:00 pm
Nice question!
October 22, 2012 at 4:20 am
easy one
May 30, 2013 at 4:15 am
Viewing 10 posts - 31 through 39 (of 39 total)
You must be logged in to reply to this topic. Login to reply