2. 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.
2
Confidential
Global Marketing
3. We’re 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 it’s advice for
managers rather than developers, right?
Sometimes, a scan is easier – especially for
grouping.
3
Confidential
Global Marketing
4. Learn More
To 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-onsql-server-enterprise/