Home > View Post

SSIS API and standards quiz

I've been doing a lot of work with SSIS (SQL Server Integration Services - the new DTS) recently and I'm really dissappointed with the adherence to Microsoft's own standards in their API. Take this little piece of code from a custom component and see how many violations you can spot?

if (!ValidateOutputColumns(output.ID))
{
    ComponentMetaData.FireError(
        0,
        "Validate",
        "Output columns and/or meta data are out of sync",
        "",
        0,
        out pbCancel);
    
    return DTSValidationStatus.VS_NEEDSNEWMETADATA;
}

(Note, I've deliberately done something a little odd to highlight one of the violations).

Surely everybody at MS has to use FxCop, which would have picked up all of these?

Tags: .NET

 
Josh Post By Josh Twist
12:46 AM
22 May 2006

» Next Post: SSIS Custom Log Provider Samples
« Previous Post: Bug bounties

Comments are closed for this post.

© 2005 - 2017 Josh Twist - All Rights Reserved.