Solved

SSIS script transformation: Change data types of multiple outputs at once?

Posted on 2014-03-13
3
1,448 Views
Last Modified: 2016-02-10
I am frequently using the SSIS script transformation and find it frustrating that the data type always defaults to an int which I then have to change manually one at a time.  Is there a way to either update the data type of multiple outputs at once or change the default type on the fly?
0
Comment
Question by:canuckconsulting
3 Comments
 
LVL 65

Expert Comment

by:Jim Horn
ID: 39927086
I've always used data conversion tasks to change them all at once

The only exception was when I had to take a string that had a date value, convert it to a date, then doing datediff math parse together a string that was the Julian date.

What is the purpose for using a script task?
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 39929052
Jim: I think you may have misunderstood the question, what canuckconsulting is referring to is the default setting of the DataType property when you add a new output column on an output in the Script Transformation.  It rang a bell because I encounter the same "issue" often, even today :)

canuckconsulting: I understand the problem, that user interface is not the most user-friendly of them all.  But as far as I know there's no way to change several in one go, the GUI doesn't even allow you to select more than one column at a time...  I also don't think it's possible to change that default...

But perhaps this tip can help you to get your task done faster: you can use copy/paste.  First click the DataType label, then CTRL-C.  This puts the type into the clipboard.  Now select the DataType property of another column by clicking the label followed by CTRL-V.  Now the second column has the same type as the first.  It should be a bit faster than going through the dropdown.
0
 

Author Closing Comment

by:canuckconsulting
ID: 39932405
Thanks very much...can't believe this interface is so poor!  Thank you for the tip!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

My client sends a request to me that they want me to load data, which will be returned by Web Service APIs, and do some transformation before importing to database. In this article, I will provide an approach to load data with Web Service Task and X…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now