Is it possible to export/import Project.params within SSIS? - ssis

Does SSIS 2012 allow to export settings of a project located into Project.params for a further import into another project?

You can simply copy and replace the Project.params file in your new project with the file from the existing project. This obviously overwrites any existing project parameters. If you have need, you can patch the two XML files together just add/remove SSIS:Parameter tags as required.

Related

How to Programmatically Add .rdl Files in the SSRS Reporting Project?

I have a Visual Studio 2019 project that I made using Report Server Project Wizard. In this project, I import reports (.rdl) files from a different report server project. To add a report, I right click on the project in the solution explorer and do Add > Existing Item and then choose the .rdl file and then it gets included in the project. Is there any way to include the reports (.rdl) files programmatically in the project? For example, can I create a C# console app to copy (.rdl) files from one report server project and then actually add them into a different report server project. Simple copying and pasting .rdl files from one project to another is not working - the file even after it is pasted doesn't show up in the project.
I have tried using EnvDTE to access the solution and project objects, but all the online sources, such as this - https://flylib.com/books/en/3.50.1.50/1/, that provide info on EnvDTE have example code written in VB and it shows you how to create a new solution and project objects and then add a file. What I want is programmatically access the object of the current(existing) report server project and somehow programmatically add .rdl files from another folder into this project. Is that possible?
Thanks
Unless you have hundreds of projects, I can't see the point of building something that is pretty easy to do anyway. You can select multiple files when you do "Add Existing Item".
Having said that, all you need to do is copy the file to the target project folder and then add an entry into the project file in an item group
e.g.
<ItemGroup>
<Report Include="My First Report.rdl" />
<Report Include="My Second Report.rdl" />
<ItemGroup>
You could probably get away with processing this as a simple text file.

How to import data from multiple text file to SQL server using SSIS?

I have multiple text file in my source folder which I have to import to SQL Server using SSIS and after import all file has to moved to Archive folder. Can any one suggest me the easiest method?
The first link below provides the basics of using SSIS to archive imported files. The second link provides similar information with additional detail of renaming the archived files with a date/timestamp tag.
Loop through files loading them and archiving them one-by-one
Archive files and add timestamp
Hope this helps.

Enterprise Architect Generate Source Code

I am using Enterprise Architecture to generate C++ classes.
Every time I do a Generate Code, it forces me to navigate to the directory I want to save the files to. Is there a configuration setting for a project or model to tell it to always generate the files to directory X?
Using 'Auto Generate Files' (in the Code generation window) should set the path name to the files automatically, and once a file path is selected, you wouldn't have to select the directory again.

Redirect BIAR Import On Buisness Objects

On my development server we have several subfolders representing different releases.
Root
|-R1
|-R2
My QA server is dedicated to R1. I want to promote all the reports and universes in R1 to the Root of QA.
I do the BIAR export and it stores the R1 path and tries to put all the contents into an R1 folder on QA. I want to redirect that import to the root of QA.
Possible? Using BusinessObjects XI 3.x.
Not possible without some hacking.
Export the content to a BIAR file
Rename the BIAR file from .biar to .zip
Open the archive, and extract businessobjects.xml
Modify businessobjects.xml to change the parent CUIDs of the objects that you want located in a different folder.
Repackage the zip, rename it back to .biar, and import.
Obviously you'd want to do a fair amount of testing with the method before doing it in a live environment...
As Joe said, this isn't possible without changing the metadata (the XML file) that resides in the BIAR archive.
Is there any reason why you wouldn't just want to import the R1 folder into QA and then move its contents to the root? It will save you quite some time not having to hack the XML and it'll be a lot less error prone.

importing thousands of files in a flat file manager SSIS data flow task sql server 2008

I am trying to import multiple tab delimited files into a sql server table using a SSIS package. I set the flat file source and created a flat file connection manager but I was told I will need to create multiple flat file sources for this. This cannot be true right?
Is there not someway I can use a loop and the source folder directory location?
So long as the files are all the same structure, you'd use a for-each loop, of type file. Point it at the folder with the files in, and assign a variable to the file+path. Then use that variable as an expression on the flat file connection manager.
Here is a link that shows how to do this: http://www.sqlis.com/sqlis/post/Looping-over-files-with-the-Foreach-Loop.aspx
I like the layout and the graphical indicators used on that page.