Welcome to

SqlServer-QA.net

Sign in | Join | Help

SQL Server Storage Engine & Tools (SSQA.net)

SQL Server Tools includes storage engine that includes a complete set of graphical tools and command prompt utilities that allow users, programmers, and administrators. SSMS, SSRS, SSIS & SSAS are most commonly used tools.
SQL Server Auditing and Logging - SSIS Audit Transformation comes handy for you in database platform

If you work in Financial based Enterprise then Sarbanes-Oxley is not a new concept for you as per American law that regulates the accountability of publicly owned companies. Just to talk about the main purpose of the law it to make sure the financial statement that a company reports is legitimate and that there’s no room for someone to manipulate it. 

 

DBAs will see this law as Data Audit information management, in terms of capture the data and present as and when they are queried. The Audit transformation needs to managed efficiently using SQL Server tools & engine capability, which gets you with SQL Server Integration Services (SSIS).  It is evident that managing Audit transformation adds extra columns to the data flow that contains lineage data about the package, task or system. So how do you go about obtain the relevant values for data transformation audit, when you create a package in Business Intelligence Development Studio (BIDS) by using the graphical interface that SQL Server 2005 Integration Services (SSIS) provides, you set the properties of the package object in the Properties window.  

 

Here is the list of columns you can use to obtain complete AUDIT information from SSIS packages (source;Technet)

 

 

Value

Description

Execution Instance ID

The unique identifier (GUID) that contains the execution instance of the package.

Package ID

The GUID that contains the unique ID for the package.

Version ID

The GUID that contains the unique ID for the version of the package.

Package Name

The name of the package.

Execution Start Time

The time when the package began to execute.

User Name

The name of the user that executed the package.

Task Name

The name of the Data Flow task that contains the Audit transformation.

Task ID

The GUID for the Data Flow task that contains the Audit transformation.

Machine Name

The name of the machine where the package was executed.


Using a SSIS package properties you could transform this Audit information to the data flow. This transformation would most frequently be used to capture lineage data of records that SSIS had to manipulate or that it couldn’t load. For example, for rows containing errors that couldn’t be corrected automatically, you may wish to add auditing data to the row before inserting it into an error queue as shown below.

 

Error outputs easily solve this problem by allowing you to specify how you’d like SSIS to handle the error. You can choose to ignore the error, fail on the error or redirect it to a different path in the pipeline. The advantage to redirecting the row is you can attempt to cleanse the row, and, if that doesn’t work, direct it to an error queue to be manually corrected the next morning.


To configure a transform or connection to output records that have failed to a different path, you can click on Configure Error Output in most transforms or click the Error Output page in a Source or Destination. Once you have the dialog box open (shown below), specify how you’d like to handle the error. There are two different classes of errors: truncation errors and transform or connection specific errors. A truncation error occurs when you try to move more data into a column than will fit. A transform or connection specific error will vary based on the transform or connection you’re using. A source and destination might have conversion errors, while the transform might have errors specific to the transform. For example, a Lookup transform will have an error if the record could not be found in the lookup operation. The type of error can be seen in the right Description column below.

 

The list of package properties you can align are:

  • Checkpoints
  • Execution
  • Forced Execution Value
  • Identification
  • Security
  • Transactions
  • Version

When talk about data transformation audit then you should be aware about logging captures run-time information about packages, and performance counters let you monitor the data flow engine.  To optimize queries against logging database BOL hints about performance tip:

When you run a package in Business Intelligence Development Studio, the Progress tab of SSIS Designer lists warnings, including a warning for any data column that a source makes available to the data flow, but that is not subsequently used by downstream data flow components. You can use the RunInOptimizedMode property to remove these columns automatically.

Posted: Thursday, August 21, 2008 1:40 AM by SQL Master
Anonymous comments are disabled