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 Thursday, September 19, 2013 12:45 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 5:28 PM
Points: 5,969, Visits: 8,224
I'm glad to see that a better reference has already been given. Saves me the trouble of looking for it.

An interesting thing (maybe already mentioned in the discussion - I'm a bit short on time) is that deliimiting identifiers with [square brackets] is totally non-standard. As far as I know, only SQL Server and Access support this. The ANSI standard and all complying products use "double quotes" to delimit identifiers.

I think the prime reason for the QUOTED_IDENTIFIER option is to supply backward compatibility. Old versions of SQL Server allowed both "double quotes" and 'single quotes' to delimit string constants, and this was sometimes used to enabl easier specification of string constants that include a single quote / apastrophe (so instead of 'O''Brian', you'd write "O'Brian").



Hugo Kornelis, SQL Server MVP
Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
Post #1496557
Posted Tuesday, September 24, 2013 3:13 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, April 15, 2014 8:03 AM
Points: 825, Visits: 319
mtassin (9/18/2013)
Stewart "Arturius" Campbell (9/18/2013)
Good question, Ron, thanks
Didn't even have to bother executing the T-SQL, which is, after all, what this is all about...


Yes... yes it is... I too can claim this one :)

Ditto
Post #1497720
Posted Wednesday, September 25, 2013 6:59 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, June 26, 2014 12:52 PM
Points: 268, Visits: 64
I picked the correct answer of 5 hours.

But got...

Sorry - you were wrong

Correct answer:
5 hours is returned by the SELECT statement, The create table statement succeeds



Post #1498321
Posted Wednesday, September 25, 2013 9:40 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 5:18 PM
Points: 5,589, Visits: 24,946
colt (9/25/2013)
I picked the correct answer of 5 hours.

But got...

Sorry - you were wrong

Correct answer:
5 hours is returned by the SELECT statement, The create table statement succeeds


The Questions are: This the plural, meaning there is more than a single (1) correct answer. If you only selected one (1) answer when more than one answer was required (requested) you are considered to be wrong.

Does the create table statement fail or succeed?
If the create table statement succeeds what value of TotalHours is returned by the Select statement?


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 #1498450
Posted Wednesday, September 25, 2013 9:42 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, June 26, 2014 12:52 PM
Points: 268, Visits: 64
D'oh. Thanks for the explanation.


Post #1498452
Posted Thursday, September 26, 2013 3:35 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Yesterday @ 3:27 PM
Points: 21,631, Visits: 15,289
Nice Question Ron.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1499084
Posted Tuesday, October 1, 2013 3:53 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: Tuesday, August 5, 2014 5:20 AM
Points: 3,546, Visits: 2,651
very good question.
Post #1500323
Posted Thursday, October 10, 2013 7:25 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, July 23, 2014 3:24 AM
Points: 1,144, Visits: 299
colt (9/25/2013)
I picked the correct answer of 5 hours.

But got...

Sorry - you were wrong

Correct answer:
5 hours is returned by the SELECT statement, The create table statement succeeds


same for me.

How can I have a good 'select ....' answer if the 'create table fails' ?

As I could not answer this I checked only one !
Post #1503566
« Prev Topic | Next Topic »

Add to briefcase «««123

Permissions Expand / Collapse