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 12345»»»

Index defaults 1 Expand / Collapse
Author
Message
Posted Wednesday, June 13, 2012 8:47 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 4:02 PM
Points: 6,133, Visits: 8,396
Comments posted to this topic are about the item Index defaults 1


Hugo Kornelis, SQL Server MVP
Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
Post #1315581
Posted Wednesday, June 13, 2012 8:47 PM


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: Monday, December 8, 2014 7:00 AM
Points: 722, Visits: 1,029
Fun question, definitely have to read ALL of the answers. Thanks!



Twitter: @SQLife
Email: sqlsalt(at)outlook(dot)com
Post #1315583
Posted Thursday, June 14, 2012 12:31 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Monday, December 15, 2014 8:05 AM
Points: 1,877, Visits: 518
Great question - thanks.
Does make you think before answering, especially given the amount of information in the question.
Post #1315632
Posted Thursday, June 14, 2012 12:36 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 12:52 PM
Points: 13,636, Visits: 11,509
Great question Hugo.

This is a statement that supports the answer:

CREATE TABLE dbo.QotD2
(KeyColumn INT NOT NULL PRIMARY KEY
,Test INT NOT NULL
,CONSTRAINT [UX_Test] UNIQUE CLUSTERED
(
Test ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY];





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 #1315637
Posted Thursday, June 14, 2012 1:06 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 12:49 AM
Points: 2,620, Visits: 2,467
Great question.
Hugo, you are the number ONE!
Thanks.
Post #1315649
Posted Thursday, June 14, 2012 1:42 AM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 10:51 AM
Points: 4,158, Visits: 5,556
Interesting question, Hugo, thanks.
Requires carefull reading and thinking before answering...


____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #1315661
Posted Thursday, June 14, 2012 2:21 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, August 25, 2014 10:25 PM
Points: 698, Visits: 158
I don't think the answer is correct for the question (mentioed in screen shot).Because if you write like this , it will create
a key that is treated as Primary Key and index wise it is clustered index
Post #1315674
Posted Thursday, June 14, 2012 2:26 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 12:52 PM
Points: 13,636, Visits: 11,509
amit_adarsh (6/14/2012)
I don't think the answer is correct for the question (mentioed in screen shot).Because if you write like this , it will create
a key that is treated as Primary Key and index wise it is clustered index


Please read the question carefully:

Below you see a part of a CREATE TABLE statement.


-- More column and constraint definitions below




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 #1315678
Posted Thursday, June 14, 2012 3:04 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: Wednesday, December 17, 2014 1:23 AM
Points: 728, Visits: 790
Koen Verbeeck (6/14/2012)
amit_adarsh (6/14/2012)
I don't think the answer is correct for the question (mentioed in screen shot).Because if you write like this , it will create
a key that is treated as Primary Key and index wise it is clustered index


Please read the question carefully:

Below you see a part of a CREATE TABLE statement.


-- More column and constraint definitions below


I missed that, d'oh what a douchebag, good question Hugo i'll look out for yours in future and spend a bit more time reading them
Post #1315699
Posted Thursday, June 14, 2012 4:56 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 3:59 PM
Points: 7,926, Visits: 9,652
Very good question.

The error rate so far (86% - 241 out of 280) is amazing. Most of those errors were the same wrong answer, there appears to a widely distributed myth that any primary index is clustered unless it is declared as unclustered. I knew that such a myth existed, but I thought it was so often debunked that only a small proportion of people still believed it. Well, that was clearly wrong - even though some of that 86% probably arises from carelessness in reading the question what is left after allowing for that carelessness is not a small proportion!


Tom
Post #1315752
« Prev Topic | Next Topic »

Add to briefcase 12345»»»

Permissions Expand / Collapse