With the most excellent help of Microsoft Excel MVPFrédéric LE GUEN there is now a French language option in the Create Time Dimension App. As expected, it will generate all headings and names in French.
Please visit the following sites for more information on Excel from Frédéric:
Microsoft SQL Server 2012 and 2014 has feature parity for SSIS and from a general/development/deployment point of view there is not a lot of exciting things to write about. A main difference is that for SQL Server 2012 the development environment is based on Visual Studio 2012 and for SQL Server 2014 the development environment is based on Visual Studio 2013.
It is possible to develop and run the SSIS packages in Visual Studio 2012 and target a SQL Server 2014 environment but for actual deployment to be able to run it scheduled using DTExec.exe or through the SSIS catalogue the project has to be in Visual Studio 2013/SQL Server 2014 format.
The upgrade process seems straightforward; just open the 2012 solution in Visual Studio 2013 and run though the upgrade wizard. However some times there are issues in the upgrade process. This blog post describes one such scenario where the upgrades failed and error messages indicates all sorts of issues.
It turns out that the code/xml parsing of the existing 2012 packages are making some interesting assumptions and that by simply moving the version tag to the top of the xml document the upgrade will work as expected.
1, open existing SSIS Visual Studio 2012 solution in Visual Studio 2013.
The open process will pick up the version difference and suggest an upgrade.
2, run through the upgrade process.
In this case, the upgrades failed for all of the SSIS packages in the solution.
3, try to open a failed package and read through the error list.
Opening the package will give the following error:
The design view window shows the main error and there is a list of other errors in the error window/list
Error 42 Error loading ‘packagename.dtsx’ : The package failed to load due to error 0xC0010014 “One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.”. This occurs when CPackage::LoadFromXML fails. . C:\path\packagename.dtsx 1 1
Some other errors in the list:
Error 41 Error loading packagename.dtsx: Failed to load task “DFT – name”, type “”. The contact information for this task is “Performs high-performance data extraction, transformation and loading;Microsoft Corporation; Microsoft SQL Server v10; (C) 2007 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1″. C:\path\packagename.dtsx 1 1
Error 33 Error loading packagename.dtsx: Element “Package\SCT – Placeholder.EventHandlers[OnPreExecute]\Pre-Initialise Event” does not exist in collection “Executables”. C:\path\packagename.dtsx 1 1
Error 1 Error loading packagename.dtsx: Cannot create a task from XML for task “EST – Set VARIABLE”, type “Microsoft.SqlServer.Dts.Tasks.ExecuteSQLTask.ExecuteSQLTask, Microsoft.SqlServer.SQLTask, Version=22.214.171.124, Culture=neutral, PublicKeyToken=89845dcd8080cc91” due to error 0xC001F430 “An error occurred while accessing an internal object. This could indicate a custom extension built for Integration Services 2005 is being used.”. C:\path\packagename.dtsx 1 1
4, Open the package using the code view to see the underlying xml document.
use the view menu or press F7 to open the Code XML view of the SSIS package.
5, Locate and move the version tag (PackageFormatVersion) to the top.
Place the <DTS:Property DTS:Name=”PackageFormatVersion”>6</DTS:Property> on the row after the <DTS:Executable…/> statement
search for the text and remove the existing line that in this case was towards the bottom of the file and place it on the 3rd line.
6, Save and reopen the design view and the package will work as expected.
Once the package is saved the upgrade engine will automatically and properly upgrade the package to the new version and the package will display the new xml structure in the xml view. (SQL Server 2014 and Visual Studio 2013 uses PackageFormatVersion 8 as version definition.
reopening the package in design view will now work as expected.
The following scenario might happen when trying to write to a view after the underlying table has been updated.
The example uses a table that is first created with a column allowing nulls. A view is then created on top of it and then the table is updated to not allow nulls for the column.
Writing to the view using SSIS (with default settings) will fail until the view is refreshed to take the current table definition into account.
This scenario uses SQL Server 2014 and Visual Studio 2013 SSDT BI for SSIS.
To test we can create a Demo Database with a demo table and a demo view:
1, Create Demo Table:
We create a demo table in a demo database. The table is as simple as possible with an identity column and a default data column allowing nulls
CREATE TABLE [dbo].[DemoTable](
[DemoId] [INT] IDENTITY(1,1) NOT NULL,
[DemoString] [NCHAR](10) NULL
) ON [PRIMARY]
2, Create View
The view is created on the table when the DemoString column allows nulls
CREATE VIEW [dbo].[DemoView]
SELECT DemoId, DemoString
3, alter the table to not allow nulls
the DemoString column is updated with NOT NULL
ALTER TABLE [dbo].[DemoTable]
ALTER COLUMN DemoString NCHAR(10) NOT NULL
3, Create a SSIS package that writes to the view
Create a sample SSIS project that will transfer information into the view:
Run the package:
The package will fail to run with the following error messages:
Error message 1
[OLE DB Destination ] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Invalid column type from bcp client for colid 1.".
Error message 2
[OLE DB Destination ] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "OLE DB Destination.Inputs[OLE DB Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "OLE DB Destination.Inputs[OLE DB Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
Error message 3
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "OLE DB Destination" (2) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (15). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
4, Update the view to take the new table definition into account:
Recreate the view, such as with this alter statement.
ALTER VIEW [dbo].[DemoView]
SELECT DemoId, DemoString
5, Rerun the SSIS package and it will run successfully:
I’ve been invited to present at the August meeting of the Queensland SQL Server User Group.
I will present on the Analytics8 approach to SSIS and Data Vault Automation and specifically on the meta data requirements for full automation of the creation of an Enterprise Data Warehouse.
With the right combination of modern modelling and automation techniques, there are huge and frequently unrealised opportunities to improve the quality and speed of the enterprise data warehouse solution delivery.
This 30 minute presentation outlines the prerequisites to achieve these ETL automation benefits, and will dive into the capture and use of information that exists in models for automated development in SSIS. During this presentation the necessary steps to develop a full Enterprise Data Warehouse solution ‘from the ground up’ will be explained and shown using a live demonstration of the ETL automation techniques and concepts.
Thanks to Wardy IT for sponsoring the event and Microsoft for hosting us.
How to solve the error: Load operation failed for query ‘GetAuthenticationInfo’ when deploying a LightSwitch 2012 application to a Windows Server 2008 R2 using IIS.
Scenario: The following error message appears in browser instead of the expected LightSwitch-based web application. The application has been developed using Microsoft LightSwitch in Visual Studio 2012. The application works as expected on the development machine but fails to run in a Microsoft Windows Server 2008 R2 environment even though the LightSwitch server side prerequisites has been installed.
After some troubleshooting it turns out that it is because the wrong version of WCF Data Services for OData had been installed. The proper version for a Visual Studio 2012 based LightSwitch application is WCF Data Services 5.0 for OData V3 and it is available for download here: http://www.microsoft.com/en-us/download/details.aspx?id=29306
After installation and a web site restart the application worked as expected.