Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 123»»»

Reserved Words - 1 Expand / Collapse
Author
Message
Posted Tuesday, September 17, 2013 9:11 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 1:40 PM
Points: 5,565, Visits: 24,710
Comments posted to this topic are about the item Reserved Words - 1

If everything seems to be going well, you have obviously overlooked something.

Ron

Please help us, help you -before posting a question please read

Before posting a performance problem please read
Post #1495745
Posted Tuesday, September 17, 2013 10:24 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, September 18, 2013 8:25 AM
Points: 8, Visits: 7
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
Post #1495756
Posted Tuesday, September 17, 2013 10:56 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Thursday, July 10, 2014 11:20 AM
Points: 1,888, Visits: 2,323
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/
Post #1495758
Posted Wednesday, September 18, 2013 1:11 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 10:54 AM
Points: 3,853, Visits: 4,991
Good question, Ron, thanks
Didn't even have to bother executing the T-SQL, which is, after all, what this is all about...


____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #1495772
Posted Wednesday, September 18, 2013 1:19 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Sunday, July 20, 2014 11:20 PM
Points: 13,252, Visits: 10,133
Nice question Ron, thanks.



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1495775
Posted Wednesday, September 18, 2013 1:26 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Sunday, July 20, 2014 4:44 AM
Points: 1,124, Visits: 513
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 )
Post #1495777
Posted Wednesday, September 18, 2013 1:38 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Tuesday, July 8, 2014 12:25 AM
Points: 445, Visits: 565
very nice question.
Post #1495784
Posted Wednesday, September 18, 2013 1:53 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: 2 days ago @ 6:24 AM
Points: 2,451, Visits: 2,342
I remember this one http://www.sqlservercentral.com/questions/T-SQL/71215/
Post #1495788
Posted Wednesday, September 18, 2013 1:58 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 10:00 AM
Points: 1,711, Visits: 6,237
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?
Post #1495793
Posted Wednesday, September 18, 2013 2:08 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Today @ 3:59 AM
Points: 582, Visits: 852
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
Post #1495799
« Prev Topic | Next Topic »

Add to briefcase 123»»»

Permissions Expand / Collapse