September 17, 2013 at 9:11 pm
Comments posted to this topic are about the item Reserved Words - 1
September 17, 2013 at 10:24 pm
Hi,
I executed this in SQL server 2008 R2.
I found that the select statement returned 5.
But the answer says that create table will fail.
Can you please check this
Thanks.
Isaac
September 17, 2013 at 10:56 pm
isaac.a (9/17/2013)
Hi,I executed this in SQL server 2008 R2.
I found that the select statement returned 5.
But the answer says that create table will fail.
Can you please check this
Thanks.
Isaac
Did you selected another option also stating: Create table statement will executed successfully.
You need to select two option for this options thats why checkboxes are there
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
September 18, 2013 at 1:11 am
This was removed by the editor as SPAM
September 18, 2013 at 1:19 am
Nice question Ron, thanks.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
September 18, 2013 at 1:26 am
Good Question; yet I had to execute & test the code myself to double check my answer cause I was not sure about using this brackets ([]) when QUOTED_IDENTIFIER is set to OFF.
Good to know something new (to me @ least :-))
Thanks & Best Regards,
Hany Helmy
SQL Server Database Consultant
September 18, 2013 at 1:38 am
very nice question.
September 18, 2013 at 1:53 am
I remember this one http://www.sqlservercentral.com/questions/T-SQL/71215/
September 18, 2013 at 1:58 am
Nice question, but I can't understand why the stuff about quoted identifiers is in the explanation. Surely the result is identical even if QUOTED_IDENTIFIER is On?
September 18, 2013 at 2:08 am
Thanks for the question but the explanation is a bit confusing. As per BOL
http://technet.microsoft.com/en-us/library/ms174393.aspx
When SET QUOTED_IDENTIFIER is OFF, literal strings in expressions can be delimited by single or double quotation marks. If a literal string is delimited by double quotation marks, the string can contain embedded single quotation marks, such as apostrophes.
and
Using brackets, [ and ], to delimit identifiers is not affected by the QUOTED_IDENTIFIER setting.
Cheers
September 18, 2013 at 3:11 am
Stewart "Arturius" Campbell (9/18/2013)
Good question, Ron, thanksDidn't even have to bother executing the T-SQL, which is, after all, what this is all about...
+1
ww; Raghu
--
The first and the hardest SQL statement I have wrote- "select * from customers" - and I was happy and felt smart.
September 18, 2013 at 8:01 am
Easy and educational. Thanks.
September 18, 2013 at 8:24 am
I need some coffee :doze: I calculated the type instead of the hours and got it wrong.
September 18, 2013 at 8:45 am
Toreador (9/18/2013)
Nice question, but I can't understand why the stuff about quoted identifiers is in the explanation. Surely the result is identical even if QUOTED_IDENTIFIER is On?
I think that wa the point of the question: the seting of quoted_identifier only affects the treatment quote marks as delimiters. not the treatment of square brackets.
Tom
September 18, 2013 at 9:04 am
L' Eomot Inversé (9/18/2013)
I think that wa the point of the question: the seting of quoted_identifier only affects the treatment quote marks as delimiters. not the treatment of square brackets.
You're probably right
Viewing 15 posts - 1 through 15 (of 27 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy