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: Sunday, January 4, 2015 7:55 AM
Points: 5,333, Visits: 25,280
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, January 22, 2015 4:42 AM
Points: 1,984, Visits: 2,424
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 @ 1:57 AM
Points: 4,231, Visits: 5,607
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: Today @ 7:53 AM
Points: 13,871, Visits: 11,761
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


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 3:51 AM
Points: 1,766, Visits: 738
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, January 19, 2015 11:44 PM
Points: 544, Visits: 675
very nice question.
Post #1495784
Posted Wednesday, September 18, 2013 1:53 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 1:25 AM
Points: 2,682, Visits: 2,529
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: Friday, January 23, 2015 10:19 AM
Points: 1,857, Visits: 6,722
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
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Thursday, January 22, 2015 7:31 AM
Points: 716, Visits: 1,017
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