SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Keeping my cardinality


Keeping my cardinality

Author
Message
Ford Fairlane
Ford Fairlane
SSCertifiable
SSCertifiable (5K reputation)SSCertifiable (5K reputation)SSCertifiable (5K reputation)SSCertifiable (5K reputation)SSCertifiable (5K reputation)SSCertifiable (5K reputation)SSCertifiable (5K reputation)SSCertifiable (5K reputation)

Group: General Forum Members
Points: 5048 Visits: 836
Nice question -

Hope this helps...

Ford Fairlane
Rock and Roll Detective





free_mascot
free_mascot
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15813 Visits: 2250
paul s-306273 (4/29/2014)
Looks like I'm going to learn something everyday this week.
Thanks for the 2014 questions Steve.


+1

---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
dawryn
dawryn
Hall of Fame
Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)

Group: General Forum Members
Points: 3626 Visits: 929
PHYData DBA (4/29/2014)
You are absolutely right about that this was not an answer that could be selected. Not sure it would be right. The question never states if the database existed prior to the upgrade. It could have been there before, or created after. Cool

Reworded question gives a hint like it was existing database:
a specific database where I am not changing any code

I such case if you wanted to use new CE for the entire database then changing compatibility level to 120 comes right. For old CE nothing is needed.
Tom Thomson
Tom Thomson
SSC Guru
SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)

Group: General Forum Members
Points: 51042 Visits: 13160
dawryn (4/29/2014)
Blink Blink Is this question about previously existing database or a newly created one? Unsure According to linked document answers are only for the latter Whistling


He has a point there. The question says you've upgraded your server, and it's a database which already exists. The upgrade process will leave this dabase's compatability level at 110 specifically in order to avoid any surprises from the new cardinality estimator, and you are advised (on the page referenced as well as in SQL Server 2014’s new cardinality estimator (Part 1)) to test thoroughly before using the new cardinality estimator for an old database in production. So the correct answer to this question is actually "do nothing - you'll get the old cardinality estimator for your old databases anyway".

edit: at least the question says you aren't changing any code in that database, which seems to me to imply it already exists.

Tom

Hugo Kornelis
Hugo Kornelis
SSC-Dedicated
SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)

Group: General Forum Members
Points: 34614 Visits: 13124
I know this is nitpicking, but "change the database compatibility level to 110" is not really a correct answer. The question mentions upgrading, and the uograde process will not change the compatibility level. So the technically correct answer would be "don't do anything, and especially don't increase the compatibility level".


Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
pchirags
pchirags
Hall of Fame
Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)

Group: General Forum Members
Points: 3351 Visits: 616
nice question steve.
Steve Jones
Steve Jones
SSC Guru
SSC Guru (332K reputation)SSC Guru (332K reputation)SSC Guru (332K reputation)SSC Guru (332K reputation)SSC Guru (332K reputation)SSC Guru (332K reputation)SSC Guru (332K reputation)SSC Guru (332K reputation)

Group: Administrators
Points: 332031 Visits: 20117
I hate questions.


I've awarded back points (finally), and changed the question to note that after the upgrade, all databases were set to 120.

I'm open to other ways to work this and get the point across. Obviously I've failed somewhat here.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Hardy21
Hardy21
SSCertifiable
SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)SSCertifiable (5.6K reputation)

Group: General Forum Members
Points: 5618 Visits: 1399
free_mascot (4/29/2014)
paul s-306273 (4/29/2014)
Looks like I'm going to learn something everyday this week.
Thanks for the 2014 questions Steve.


+1

+1

Thanks
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search