Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Question - new to BO Data Services Designer - how to automatically transform varchar column data to upper(varchar) across all columns in a table?

$
0
0

Hello -

 

New user to BO Data Services Designer. Company is using Data Services Version 12.2.

 

I have many tables that all need the same transformation- converting varchars fields to upper(varchar) fields


Example:


I have a table called Items. It has 40 columns, 25 of which are of type varchar.


What I have been doing is ....

I make the Item table as the source table then create a Query transform that is then attached to a new target table called - ITEMS_Production.


I can manually drag and drop columns from the source table to the query and then in the mapping area I can manually type in upper(table_name.column_name) or select the upper function and then select the table.column name from the function drop down list.




Obviously, I want to do this quicker as I have to do this for lots and lots of tables.


How can set up Data Services so that I can drag and drop an upper transform quickly and easily or automate this process.


I also know Python-Java so am happy to script something if need be.


the logic would be something like -


if there is a column with a type varchar, add the upper() transformation to column. Go to next column.


Excited to be using this new tool-


Thanks in advance.


Ray

 


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>