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 @ 3:32 PM
Points: 5,794, Visits: 8,006
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: Thursday, November 21, 2013 12:55 PM
Points: 722, Visits: 995
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: Thursday, April 10, 2014 1:38 AM
Points: 1,615, Visits: 446
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: Today @ 2:41 PM
Points: 12,201, Visits: 9,156
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: Monday, April 14, 2014 3:30 AM
Points: 2,390, Visits: 2,281
Great question.
Hugo, you are the number ONE!
Thanks.
Post #1315649
Posted Thursday, June 14, 2012 1:42 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: Today @ 5:25 AM
Points: 3,683, Visits: 4,817
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: Yesterday @ 5:44 AM
Points: 685, Visits: 146
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: Today @ 2:41 PM
Points: 12,201, Visits: 9,156
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: Tuesday, April 08, 2014 6:25 AM
Points: 716, Visits: 755
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


SSCrazy Eights

SSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy Eights

Group: General Forum Members
Last Login: Today @ 3:18 PM
Points: 8,277, Visits: 8,720
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