Sqlserver from datastage: load table with strange name

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
sangi1981
Participant
Posts: 99
Joined: Fri Jun 13, 2008 8:10 am

Sqlserver from datastage: load table with strange name

Post by sangi1981 »

Hi All,

I have a sqlserve table, whose name is like "Vers-xxx_yyy".
As you can see, there is a character "-".
I don't know why this table was made so
But, I have to load it from datastage job.
So when I run my job, I obtain error "table doesn't exist".
I use odbc stage.

Directly on sqlserver it is possible to use sintax [Vers-xxx_yyy], but not in datastage.

Is there a way to avoid/resolve the problem?

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

Post by chulett »

Actually, I thought you need to do the exact same thing in DataStage... did you try it? What happened?
-craig

"You can never have too many knives" -- Logan Nine Fingers
sangi1981
Participant
Posts: 99
Joined: Fri Jun 13, 2008 8:10 am

Post by sangi1981 »

OK, thanks.

I used the odbc stage with write option, and in this case the use of square brackets gives error.
By using the upsert option within odbc stage, now table with square brackets is properly recognized.
Thanks
Post Reply