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


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Thursday, August 20, 2015 12:21 AM
Points: 2,078, Visits: 2,647
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:21 AM
Points: 4,599, Visits: 6,146
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 @ 9:12 AM
Points: 14,608, Visits: 12,669
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 SQLKover.

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


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: 2 days ago @ 12:51 AM
Points: 2,116, Visits: 934
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
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Wednesday, August 19, 2015 5:17 AM
Points: 609, Visits: 827
very nice question.
Post #1495784
Posted Wednesday, September 18, 2013 1:53 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 2:11 AM
Points: 2,909, Visits: 2,787
I remember this one http://www.sqlservercentral.com/questions/T-SQL/71215/
Post #1495788
Posted Wednesday, September 18, 2013 1:58 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 5:49 AM
Points: 2,017, Visits: 7,325
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
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, August 18, 2015 1:03 AM
Points: 800, Visits: 1,193
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