Solved

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

Posted on 2014-03-13
3
1,492 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
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.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

813 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

11 Experts available now in Live!

Get 1:1 Help Now