Insert/Update column value with special char #

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
lpadrta
Premium Member
Premium Member
Posts: 38
Joined: Thu Nov 07, 2002 7:39 am
Location: Jacksonville, FL

Insert/Update column value with special char #

Post by lpadrta »

I'm using the odbc connector to insert in a sql server table.

I'm trying to insert/update a varchar column with a value "#XYZ" and it is making the target column blank/empty.

Have a suggest on how to get the "#XYZ# inserted/updated in the target?

Thanks for your help!

Lynda
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Which is it - "#XYZ" or "#XYZ#"? Asking since you posted both variations. If it is the latter then I'd guess it is thinking it is a job parameter that it cannot find... but that would leave it intact rather than null. :?
Last edited by chulett on Mon Dec 30, 2013 5:19 pm, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
lpadrta
Premium Member
Premium Member
Posts: 38
Joined: Thu Nov 07, 2002 7:39 am
Location: Jacksonville, FL

Post by lpadrta »

Oops, sorry. :oops:

There's only one # sign. #XYZ is the value I want to insert.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Really not sure why that value would be an issue... but then I have no direct SQL Server experience. Is that your only issue, meaning other values load correctly and just something that starts with a hash ends up null? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
lpadrta
Premium Member
Premium Member
Posts: 38
Joined: Thu Nov 07, 2002 7:39 am
Location: Jacksonville, FL

Post by lpadrta »

Wow. I've rerun the job while testing some other issues, and now the #XYZ values are loading OK. I'll have to investigate to find out if someone changed my source or the table or the DS environment. Sigh.

Thanks, chulett.

I'll report back if I can find a reason for the change. Even if it's a ID10T UE.

Lynda
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply