I have created a transformation component, and basically it accepts data from a source, and will do very transformations before it can save the information in a database.
But, I want to map between the source columns and the database columns that are called up from my transformation component.
I would like it to look like the mapping in Lookup Transformation Editor.
How do I create an editor that will have the same functionality for mapping, so that it will allow a user to draw a line from a source column to a destination column.
I am using Sql Server 2008 and VS2008 for this project.
I realize I will need to create a custom UI for this component, replacing the Advanced Editor that comes up by default.
Use my wrapper for the DtsMappingSurfaceControl: http://toddmcdermid.blogspot.com/2009/07/using-dtsmappingsurfacecontrol-in-your.html
Related
There is a custom implementation in dhtmlx gantt for upload from MPP/XML which goes to their servlet and renders the gantt. Has anyone tried to build a custom CSV upload or any third parties available to load the csv into the gantt.
https://dhtmlx.com/blog/export-import-ms-project-dhtmlx-gantt-chart/
There is no such solution from DHTMLX (FYI I work for DHTMLX), and I'm not aware if there is any third-party service or ready-to-use solution that could be used for a development.
At the code level, importing csv into gantt breaks down into three steps:
parsing CSV into an object array
mapping columns of CSV to properties of that objects (mandatory properties of gantt tasks - text/start_date/duration/parent)
and inserting the result into database.
The first step is trivial. Mapping columns may require implementing some sort of UI so the user could specify which columns of csv mean what in gantt.
For an inspiration, you can check how it's done in this app https://app.ganttpro.com/ - requires registration, but you can create a free account using google or facebook acc - create new project ("+ CREATE NEW" in lefthand menu), select "Import from" and try uploading some csv file -> here is how the ui looks like.
As for the last step - inserting parsed records into db - you'll need to do some coding in order to insert tasks without losing project hierarchy (task.parent -> task.id relations, given that database ids of your items will likely change after inserting), but overall it shouldn't be very difficult.
If you looking for something more specific - please update your question.
I want to create embedded data source in SSRS 2014 using Visual studio 2013. But there is no item for embedded data source. How I can add it?
Thanks
You create an Embedded Data Source in the report itself, not in the project.
Create a new report in your project (or use an existing one). Then, in the Report Data pane Ctrl+Alt+D, create a new Data Source by right-clicking on the Data Sources folder.
Choose Embedded connection, the Type and populate the Connection String with the settings that are appropriate for connecting to your database.
Afterward, add a new dataset by right-clicking on the Datasets folder and choosing Add dataset. Choose Use a dataset embedded in my report, and pick the data source you created above.
The report will use that embedded connection going forward, at least for this dataset.
I am writing an SSIS package that reads XML files and loads the data from the XML files into the CRM 2011 database. As it stands, the package reads the title of a client record, compares it to the hard-coded values in my script, and if there is a match, the value of the title option set is assigned.
However, my client wishes to now have the option set expandable. This would require the SSIS package to retrieve the entire option set from CRM, to compare the current possible values with the value in the record. But the SSIS does not use the Microsoft.Xrm.Sdk assembly - the package uses condition expressions and invokes the CRM API to get and set entities.
So I cannot use a RetrieveAttributeRequest (the normal way when using the Microsoft.Xrm.Sdk assembly) to retrieve the option set. Is there another way?
You can get this information by looking at the SQL view "FilteredStringMap". You need to know the entity name, attribute name and also which language code you want to look at.
This is supported by Microsoft as it is using a filtered view.
I am creating an SSIS package that will fetch data from tables in a sql database and store this data in datasets as package variables. A data flow task containing a flat file source will read data from a text file. This source component will feed my custom component which will access the dataset variables to deal with a few lookups and other manipulating. The custom component then creates sqlcommands for relevant insert statements. The issue that I am having, is that I am unsure of how to access these package variables from my custom pipeline component.
For further clarification:
The reason that I am creating a custom component is because the outputs of the source component will only be known at runtime as the flat file source will be changing and so will its columns. I then lookup a "mapping table" in a sql database to determine which flat file columns will map to fields in a table in the database.
I will be creating a script component which creates the data source and maps its outputs to the custom component. The custom component will use lookup data to create the necessary insert statement.
Since your custom component will be inheriting from PipelineComponent, it will have access to the VariableDispenser property and the AcquireConnections and ReleaseConnections methods.
I try to export excel file with some format like:
Interior.Color
HorizontalAlignment
Font.Bold
and etc..
So the question is, can we do like that is SSIS..
and how to do it?
Not natively no.
If you always have the same output format you could create a formatted template spreadsheet, then make a copy of that to fill with data. I have seen this done before, the formulas and formatting were in the template, the SSIS job copied the template, then populated the copy.
SSIS is primarily a tool for moving data. Although it may be possible to write a script task or a custom component to do what you want, a better way would be to use a tool that is designed for presentation of data (a reporting tool, for example: SSRS) to do what you are trying to do.