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: Thursday, November 6, 2014 1:00 PM
Points: 5,333, Visits: 25,277
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: Sunday, December 14, 2014 11:09 PM
Points: 1,962, Visits: 2,406
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


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 12:04 PM
Points: 4,158, Visits: 5,555
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: Yesterday @ 12:52 PM
Points: 13,636, Visits: 11,509
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: Yesterday @ 3:46 AM
Points: 1,429, Visits: 685
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
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: Monday, December 15, 2014 10:57 PM
Points: 517, Visits: 646
very nice question.
Post #1495784
Posted Wednesday, September 18, 2013 1:53 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 12:49 AM
Points: 2,620, Visits: 2,467
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: Yesterday @ 10:22 AM
Points: 1,830, Visits: 6,646
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
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Monday, December 15, 2014 1:05 AM
Points: 672, Visits: 975
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