bids

How to execute a Process Task where the Executable path comes from a user Variable

隐身守侯 提交于 2019-12-03 11:15:40
I have an SSIS package that includes a Process Task. The process task needs to execute batch file. The location of the batch file varies depending on the environment (dev, production). How do I dynamically set tghe value of the Executable property of the Process Task object to a user variable? I think that you need to create a variable that takes in the folder path and the executable file name to evaluate as an expression. You then need to assign this variable that evaluates as expression to the Executable property of the Execute Process Task . Also, you need to have a valid executable path

Why does SSIS fail to create this task?

主宰稳场 提交于 2019-12-02 18:05:07
问题 I have written this code to implement an SSIS control flow task that fetches a file over HTTP: using System; using Microsoft.SqlServer.Dts.Runtime; namespace HttpTask { [DtsTask( DisplayName = "HTTP Task", TaskContact = "Iain Elder", RequiredProductLevel = DTSProductLevel.None )] public class HttpTask : Task { public string LocalPath {get; set;} public string Connection {get; set;} public bool OverwriteDestination {get; set;} public DTSExecResult Execute(Connections connections,

SSIS Project Connections

北城余情 提交于 2019-12-02 09:32:36
Using Visual Studio to build my SSIS packages. Project connections - they seem like a good idea so I'll do that instead of repeating my code.... Problem when you try to run the packages individually outside Visual Studio, say dtexec, they don't have any connection associated with them so they fail. Do I really have to duplicate package connections for all 20 packages? Is there not a way to share a connection? I want to be able to run each package separately/in groups as they will have a differing schedules. I'm a developer so Visual Studio is my default goto - would SQL Server provide a better

Create table before the dataflow in BIML

假装没事ソ 提交于 2019-12-02 04:49:33
问题 I am using BIML and BIDSHelper to create SSIS package. I am trying to import data from csv to sql server. I want to create table in the destination database before the dataflow happens. Here is my code: <Biml xmlns="http://schemas.varigence.com/biml.xsd"> <Connections> <OleDbConnection Name="CM_OLE" ConnectionString="Data Source=(localdb)\projects;Initial Catalog=test;Integrated Security=SSPI;Provider=SQLNCLI11"> </OleDbConnection> <FlatFileConnection Name="FF Source" FileFormat="FFF Source"

SSIS : Creating a flat file with different row formats

寵の児 提交于 2019-12-02 01:56:57
问题 I want to create a flat file output, where format of rows is different. file has header, middle data rows, footer row. file will look Like below H|deptcode123|deptNameXYZ|totalemp300 E|Sam|Johnson|address1|empCode1|........many other columns E|Sam2|Johnson2|address2|empCode2|........many other columns E|Sam4|Johnson3|address3|empCode3|........many other columns E|Sam5|Johnson4|address4|empCode4|........many other columns J|300|250000 How can I generate this file in SSIS. Input will come from

SSIS Excel to SQL import — First 6 rows of the file contains header-related information

爷,独闯天下 提交于 2019-12-02 00:12:06
I am working on importing thousands of rows(120K) of data from an excel file into a SQL Server. Now I am trying to use SSIS to accomplish this but I immediately ran into some problem considering the excel template that the excel file is built with does not seem to contain the Header in just the first row(about the first 6 rows contain header information). How do I solve for this problem using the SSIS Data flow task in BIDS to handle the imports? Or would it be better to read the lines via direct read of each row from the Excel document? Other information that I think will be helpful here is a

How can I “specify a dataset aggregate” in this SSRS Expression?

末鹿安然 提交于 2019-12-01 18:37:50
I need a row value in my SSRS report that is a calculated one based on a couple of fields that are already being used in the report. I want it to display in the textbox named 'textboxPercentageValue'. In semi-plain English, the expression/formula is: If the value of the "Week" field is "WK1", display the value of the Variance field divided by the value of the Price field; otherwise, just display the value from the Variance field. In VB script gobbledygook, the expression/formula I've add to textboxPercentageValue's Value propert is: =IIF((Fields!Week.Value="WK1"), Fields!Variance.Value /

How to Add a File to the SSIS Project Miscellaneous Folder

﹥>﹥吖頭↗ 提交于 2019-12-01 13:55:44
问题 I'm using BIDS2008 and I want to add a file to the Miscellaneous folder of my SSIS project. I have tried: to drag-and-drop a file to the folder icon in Solution Explorer - not allowed to right-click the folder icon - return 0 menu options to add-item from the project icon in Solution Explorer - didn't see anything helpful there to create the folder by hand, add a dummy text file, close-reopen-rebuild solution - no success of any kind This must be something really simple, but I have no idea

Trying to process the cube but getting the error at impersonation information

时光总嘲笑我的痴心妄想 提交于 2019-12-01 03:41:23
I have built a cube in Business Development Intelligent Studio(BIDS) using some database with the name 'Test_cube' which consists of Products dimension table, customers dimension table and orders fact table. The products table attributes :prodID-primary key,prodname,prodtype,prodcost The customers table attributes :custID-primary key,custname,custloc The orders table attributes :orderID,prodID,custID,quantity,unitprice,totalprice-calculated query column where primary key was set to orderID,prodID,custID But I got some errors while trying to deploy the cube like Internal error : The operation

Trying to process the cube but getting the error at impersonation information

百般思念 提交于 2019-12-01 01:13:42
问题 I have built a cube in Business Development Intelligent Studio(BIDS) using some database with the name 'Test_cube' which consists of Products dimension table, customers dimension table and orders fact table. The products table attributes :prodID-primary key,prodname,prodtype,prodcost The customers table attributes :custID-primary key,custname,custloc The orders table attributes :orderID,prodID,custID,quantity,unitprice,totalprice-calculated query column where primary key was set to orderID