Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a char data type variable using concatenation

Status
Not open for further replies.

achick

Programmer
May 23, 2007
66
US

I am trying to create a derived column of data type char from integer variable and a string "ABC"

In SSIS when I use this as an expression for derived variable

"ABC"+ (DT_STR,3,1252)[id] it becomes a nvarchar/DT_WSTR ?

To comply with same data type in DB I need char.

I think it's happening due to concatenation with a string( "ABC" in this case). What can I do differently to make it a char?


 
(DT_STR,3,1252)"ABC" + (DT_STR,3,1252)[id]

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top