August 15, 2011 at 6:52 am
I would also would like to thank the author for an easy Monday Morning question.
😎
It reminds me of the SAT prep classes that said when faced with two right answers always select the one that comes first. 😛
August 15, 2011 at 6:56 am
SanDroid (8/15/2011)
I would also would like to thank the author for an easy Monday Morning question.😎
It reminds me of the SAT prep classes that said when faced with two right answers always select the one that comes first. 😛
I haven't done the SAT for over 20 years. ANSI_PADDING is also correct.
August 15, 2011 at 7:19 am
mtassin (8/15/2011)
SanDroid (8/15/2011)
I would also would like to thank the author for an easy Monday Morning question.😎
It reminds me of the SAT prep classes that said when faced with two right answers always select the one that comes first. 😛
I haven't done the SAT for over 20 years. ANSI_PADDING is also correct.
I totally agree. But seems like it has been said enough you would hope.
August 15, 2011 at 7:41 am
Good question, poorly edited; should have been two answers.
August 15, 2011 at 8:29 am
Spot on Simone - there should have been two answers!
Doing this post to get my point back 😛
The impossible can be done at once, miracles may take a little longer 🙂
August 15, 2011 at 8:47 am
OCTom (8/15/2011)
I like the fact that the author spelled deprecated correctly. I'm tired of seeing it spelled depreciated. 🙂
I think I depreciated the other answers 🙁
Didn't check them, have gotten out of the habit of checking for "correct" answers in the wrong ones. The question has been corrected and points awarded back.
August 15, 2011 at 8:53 am
Looks like I missed the fun. I was able to check two answers and got it correct.
August 15, 2011 at 10:30 am
Robert Davis (8/15/2011)
Looks like I missed the fun. I was able to check two answers and got it correct.
Ditto
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 15, 2011 at 10:45 am
Feh, answered the question that arrived in my email this morning, which unfortunately wasn't the (corrected) question posted on the website at the time I answered.
Real lesson learned today from QotD -- re-read the question before issuing a COMMIT:
IF OBJECT_ID('tempdb.dbo.#QotD', 'U') IS NOT NULL DROP TABLE #QotD;
CREATE TABLE #QotD (Answer VARCHAR(100));
DECLARE @QotD_Email VARCHAR(MAX), @QotD_Web VARCHAR(MAX);
SET @QotD_Email = 'In a future version of SQL Server, which option will always be ON and generate an error when any applications explicitly set the option to OFF?';
SET @QotD_Web = 'In a future version of SQL Server, which two options will always be ON and generate an error when any applications explicitly set the option to OFF?';
BEGIN TRAN
INSERT INTO #QotD
(Answer)
VALUES
(
'SET ANSI_PADDING ON'
);
IF @QotD_Email = @QotD_Web
BEGIN
COMMIT TRAN
SELECT * FROM #QotD;
END
ELSE
BEGIN
ROLLBACK
SELECT 'Re-read the question! Version 2.0 has been posted....';
END
IF OBJECT_ID('tempdb.dbo.#QotD', 'U') IS NOT NULL DROP TABLE #QotD;
Rich
August 15, 2011 at 10:52 am
Thanks for the question. I'm glad it was fixed.
---------------------------------------------------------------------
Use Full Links:
KB Article from Microsoft on how to ask a question on a Forum
August 15, 2011 at 11:12 am
Steve Jones - SSC Editor (8/15/2011)
OCTom (8/15/2011)
I like the fact that the author spelled deprecated correctly. I'm tired of seeing it spelled depreciated. 🙂I think I depreciated the other answers 🙁
Didn't check them, have gotten out of the habit of checking for "correct" answers in the wrong ones. The question has been corrected and points awarded back.
I appreciate the depreciation... or, something like that.
Thanks Steve.
August 15, 2011 at 12:34 pm
Thanks for the question. I too got to it after it was fixed.
August 16, 2011 at 1:49 pm
SQLRNNR (8/15/2011)
Robert Davis (8/15/2011)
Looks like I missed the fun. I was able to check two answers and got it correct.Ditto
Dido....:-P
August 17, 2011 at 7:21 am
Nice question, thanks.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
Viewing 14 posts - 16 through 28 (of 28 total)
You must be logged in to reply to this topic. Login to reply