Take Advantage of SQL Server 2012's Window FunctionalityCommented on: 2 years ago
(October 6, 2012)
it is confusing when you use partition by clause with group by.
SELECT prd_type_id, month, SUM(amount) AS SUM_Amount,
RANK() OVER (PARTITION BY month ORDER BY SUM(amount) DESC)
What's a good use for a UNIQUE filtered index?Commented on: 3 years ago
(November 18, 2011)
With the presence of unique filtered index, if my query criteriion is something like "where ssn is null". Why sql server could not take advantage of the unique filtered index by except the...
The quest for the Golden Record to achieve a single, accurate and complete version of a customer record is worth the pursuit to attain survivorship. Record matching and consolidation are only the beginning. Melissa Data takes a new approach. Learn how to apply intelligent rules based on reference data to make smarter and better decisions for data cleansing....More
On SQL Servers where Availability Groups (or Mirroring) isn’t in play, I typically recommend keeping a combination of on-box backups along with copying said backups off-box as well. Obviously, keeping databases AND backups on the SAME server is the metaphorical equivalent of putting all of your eggs in one basket – and therefore something you should avoid like the plague....More
One of the biggest strengths of AlwaysOn Availability Groups is that they allow DBAs to address both high availability and disaster recovery concerns from a single set of tooling or interfaces. But, this doesn’t mean that you won’t still need backups....More