Using unique constraints
I ran into an interesting problem the other day. Given the title of the post, obviously a unique constraint was involved, although I want to point out that the problem was not caused by the constraint...
View ArticleSQL F.A.D. – Trace flag 834 and columnstore indexes - » Syndication
Trace flags can be good Are special codes we, the DBA, can...The post SQL F.A.D. – Trace flag 834 and columnstore indexes appeared first on WaterOx Consulting.
View ArticleAutomatically re-write non-sargable isnulls into sargable code in SSDT
"where ISNULL(column, 'DontMatch') = 'Match'" - is kind of a bad thing to do in SQL as it means that any index on column can't be used. It is a really simple thing that is a waste of time, fixing it is...
View ArticleT-SQL Clippy
I love writing c# code using visual studio and resharper, it is a really nice experience and resharper does a lot of boiler plate stuff and offers re-writes for you that mean you can concentrate on...
View ArticleAdditional Controls for SSIS
COZYROC is the leading company providing advanced Microsoft SQL Server 2005-2014 Integration Services (SSIS) library of custom tasks, components and scripts for handling Zip, GZip, BZip2, Tar archives,...
View ArticleDatabase Design Evils
I posted a tongue-in-cheek Twitter poll about some database design features that tend to polarize team members. Of course, every design decision comes down to cost, benefit and risk. So there aren’t...
View ArticleSQL to generate Asset Information – Configuration Manager SCCM 2012
SELECT DISTINCT s.Netbios_Name0 AS ComputerName, s.Operating_System_Name_and0 AS OSName, pr.Name0 AS ProcessorTypeSpeed, pr.Manufacturer0 Manufacturer,...
View ArticleDynamic Data Flow using Cozyroc component part I
This is in fact a double double post. Double because it is composed of 2 parts and double because I am writing about two things today:1 – Open Live Writer (OLW) – The open source version of Windows...
View Article#0365 – SQL Server – Auditing – Fetching properties of the current connection...
Most enterprise applications implement auditing in areas of application that have business importance, data cleanup and data quality improvement. It therefore becomes important to track the...
View ArticlePicking a Clustered Index
A Clustered Index is not another term for Primary Key, and more thought should be put into the key columns of the index than always allowing them to default to the PK.First of all, the primary key is...
View ArticleCan we get a license for DDL Triggers?
There are several types of triggers. Logon triggers– Fired when someone tries to connect to the instance.DML triggers– Fired after a DML statement. INSERT, UPDATE and DELETE statements.DDL triggers–...
View ArticleMonday Morning SQL Break – December 14, 2015
It’s Monday time for this week’s weekly blog and twitter round-up for last week. If you haven’t already, follow me on twitter (@StrateSQL). This is a good chance to catch up on data platform technology...
View ArticleLog Shipping: It’s Better Than Bad It’s Good!
This is something of an epic post, so grab a tea and get ready…I’m probably showing my age by quoting an old Ren and Stimpy cartoon here, but to be fair it probably sums up log shipping pretty well....
View ArticlePower BI Desktop, Sort By Column And DAX Calculations That Use The All()...
Recently I came across a problem where a DAX measure gave different results in Excel and Power BI Desktop. It turned out not to be a bug or even a feature, but since it confused me for a few minutes I...
View ArticleWhich Secure Protocols are Allowed on Your Servers
A script to have handy to tell you which schannel protocols are enabled / disabled for PCI or certificate compliance.$path="HKLM://SYSTEM/CurrentControlSet/Control/SecurityProviders/Schannel/Protocols"...
View ArticleScripting out multiple scripts from the Object Explorer Details window.
A few weeks ago I was reading a blog post by Andrea Allred (b/t) and was just amazed by what I was reading. I’ve never been a big fan of the Object Explorer Details window. It didn’t seem to really add...
View ArticleDear #sqlfamily
This was the first time Lucy (and her brother smiled) after the first few days of treatment (in which she was constantly vomiting). A charity had come into the hospital to let the kids play with their...
View ArticleCannot Open the Properties of a 2014 Availability Group in SSMS 2016 CTP 3
I ran across a bug in SSMS 2016 CTP 2 back in August. If you try to right click and look at the properties of a 2014 availability group using the SSMS 2016 CTP you’ll get an error. The bug had...
View ArticleWhat Alerts Us About The SQL Agent? - Syndication – WaterOx Consulting
The SQL Agent is our friend! Setting up SQL Server Agent to...The post What Alerts Us About The SQL Agent? appeared first on WaterOx Consulting.
View ArticleGet Operation Status of an Azure Async Operation
Recently I was trying to make a drive bigger on an Azure VM by simply using Set-AzureOSDisk PowerShell commandlet (and the -ResizedSizeInGB switch). The problem is that this command is asynchronous...
View Article