ssis

SSIS MYSQL to SQL Datatype

I'm trying to copy data from MySQL to SQL Server 2008. My SSIS is generating error for time (DBTime) column in MySQL database. (cannot convert dbtime to dbtime2) What datatype can i use in SQL server for time? I tired nvarchar, varchar and also tried data conversion task but i get same error. ...

SSIS 2005: "Append rows to the destination table" is greyed out. Why?

In SQL Server 2005, Import Data (SSIS), my desire is to import a text file and have it append to an existing table. The first time through the wizard on the Column Mappings step I swear the Append rows to the destination table radio button was enabled. But, now, it's disabled (grey) and even re-starting the wizard won't cause it to re...

Migration strategies for SQL 2000 to SQL 2008

I've perused the threads here on migration from SQL 2000 to SQL 2008 but haven't really run into my question, so here we go with another one. I'm building a strategy to move specific SQL 2000 databases to a new SQL 2008 R2 instance. My question comes with regards to the best method for transferring the schema and data. One way I know ...

How can multiple Stored Procedures update same row at same time?

I am using SSIS 2008 to execute multiple stored procedures in parallel in control flow. Each SP is supposed to ultimately update 1 row in a table. The point to note is that each SP has a defined responsibility to update specific columns only. It is guaranteed that the different SPs will not update each other's columns. So the columns t...

Looping RecordSet Destination in SSIS Script Task

Hello How to loop through / access values of RecordSet Destination in SSIS Script Task. Thanks ...

Import negative numbers with SSIS 2005

I'm importing a flat txt file into SQL Server 2005 using SSIS. The problem is that negative numbers between -1 and 0 in the txt file are in a format without leading zero, e.g.: -.15 If I insert such number into my database using plain INSERT syntax it works without complaining. However, SSIS reports an error if it encounter such number...

How to add specific columns from DataTable to the DB using SSIS ?

I have a CSV File, from that file i have to consider only two columns suppose A & B. Now my requirement is Map all the values which are there in the column A from the CSV to the table and update other column in the table with the values from Column B. So far, i have created a DataTable which has these two columns. But I dont know how t...

Counting updates/inserts in SSIS using PGNP

I'm updating a table from another table in the same database - what would be the best way to count the updates/inserts? I can think of a couple of methods: Join the tables and count (i.e. inner join for update, left join where null for inserts) then perform the update/insert Use the modification date in the target table (this is maint...

SSIS package taking a very long time to execute

Hi , I have a package that does a row by row update of values. When i run this though the debug mode (opening the solution and pressing 'play') it takes about 2 mins. However when i try to run it by clicking thre dtsx, it takes about 3 hours. Any ideas? Thanks Abhi ...

Login time out expiry when running SSIS package through agent job

Hi , I get the following error when i try to schedule my ssis package. Its failing when i tries to process anything above 4000 records from a flat file source. Anything below 4000 and it processes fine. Any suggestion would be very helpful. Thanks , Abhi Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. E...

SSIS 2008 Lookup Transformation SQL Query loses formatting

Since the SQL query box of an SSIS Lookup transformation is almost unusable, I usually write my code in SSMS (formatted with Redgate's SQL Prompt tool) and copy it to the Lookup. When you close this window and later come back in, sometimes the formatting is preserved, but sometimes the carriage returns are replaced by the "square" chara...

SSIS: Synchronous output and Pass-Through

I'm writing an SSIS Transformation component. I would like to allow the user to select which input fields he would like to pass-through to the output. I thought that the SetUsageType() function would control this - it takes an enumeration (DT_READONLY, DT_READWRITE, DT_IGNORED). DT_READONLY is for input-only fields, DT_READWRITE is for ...

Unzip in c# SSIS script task using Icsharpcode library

Hello all, I need to programatically unzip a zip file in c# in an SSIS Script task. I know there is a free library called Icsharpcode. Has anyone done this. If so any hints or suggestions would be appreciated. ...

What is different in SSIS SQL 2008 Standard vs Enterprise?

I spent half an hour trying to figure out what I cant do in SQL 2008 Standard in terms of importing data using SSIS pacakges vs Enterprise edition and simply couldnt find the answer.. I am sure someone already knows that.. Please tell !! :) ...

Extracting Data Client Side

I need to be able to extract and transform data from a data source on a client machine and ship it off via a web service call to be loaded into our data store. I would love to be able leverage SSIS but the Sql Server licensing agreement is preventing me from installing Integration Services on a client machine. Can I just provide the clie...

How to replace a string value with db null?

I have an ssis package that imports a view from one database into different db and places the data into a table. The view has all datatypes set to varchar which I cannot change. Some of these varchars are really datetime values. The view has set all NULL values to N/A and i want to replace the N/A with db null. The table I am importi...

SQL Server Integration Services 2008 OLE DB Source

I have this query: declare @company as varchar (20); declare @query as varchar (500); select @company=Name from Company; set @query='SELECT [Name] ,[Address] FROM [' + @company + '$Customer]' exec (@query) It can run succesfully in SQL Server and 8 rows returned, but when i copied that query and pasted it in SSIS OLE DB...

execute SSIS or DTS package asynchronously from ASP.NET

Hi, I need to load and execute SSIS or DTS packages ASYNCHRONOUSLY from ASP.NET C# page on click of a button and report the success or failure at the end of the execution and if it fails the details of the exception should be shown to the user. it needs to be asynchronous because job could take a long time to finish. user should also ...

How to pass a parameter to SSRS report from SSIS package?

Hello, I'm writing my first SSIS pkg and I'm stuck. Any insight would be greatly appreciated. I'm running a sql agent job that kicks off a SSRS report. (The job was generated via a scheduled subscription.) This report relies on 2 stored procs which require the parameter 'When' (date type) and it dumps a PDF of the report to a file sh...

Sql Server Analysis Services Parent Child with non-unique key

I'm currently building our Data Warehouse, primarily using Ralph Kimball's methods and guidance. We are using the Microsoft stack for this (so SSIS, SSAS). I am a bit stuck deciding how to handle BOMS (Bill of Materials) which is effectively an unbalanced hierarchy. The BOM handles assemblies which are a collection of parts. Each part...