brent ozar twitter chat - what developers need to know about sql server

Download Brent Ozar Twitter Chat - What Developers Need to Know about SQL Server

If you can't read please download the document

Upload: sqldbapros

Post on 16-Apr-2017

422 views

Category:

Documents


1 download

TRANSCRIPT

Dell_4x3 template_4.28.11

What Developers Need to Know About SQL ServerBrent Ozar

#11/15/201311/15/2013Global MarketingConfidential

1

What Features, Commands, Datatypes, Etc. Should Be Generally Avoided?

If you say BETWEEN December 1st and December 31st, SQL Server sees that last parameter as the very beginning of December 31st. Any data from, say, 1AM on December 31st and afterwards is going to be excluded.

Simplicity is a big theme here. Manhandling the engine around with hints usually results in worse performance overall.

#11/15/201311/15/2013Global MarketingConfidentialWere not saying nested views are wrong sometimes they can work really well but KBK is pointing out that you may end up dragging a bunch more tables into your query inadvertently.

Always good advice but its advice for managers rather than developers, right?

Sometimes, a scan is easier especially for grouping.

#11/15/201311/15/2013Global MarketingConfidentialLearn MoreTo view the entire twitter chat with Brent Ozar, go to http://bit.ly/HVh4m3.To see Solutions for SQL Server from Dell, go to: http://software.dell.com/products/spotlight-on-sql-server-enterprise/

#11/15/201311/15/2013Global MarketingConfidential