Auto Increment Surrogate Key

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
metadata1
Participant
Posts: 10
Joined: Thu Dec 04, 2008 5:50 pm

Auto Increment Surrogate Key

Post by metadata1 »

Hi - I am new to DW/DataStage 8 and I found this forum as a great knowledge tool and a quick resource to learn, connect and help others - Hopefully soon I will be in a position to help others myself -

My question is why can't we use DB auto increment function on the key column to create a surrogate key for a dimension table - May be when loading up the dimension table omit/Null the key column mapping and let the DB create the PK for us - I am sure there is a good obvious answer for that but I was a bit confused.

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

Post by chulett »

Welcome. You can, and as you noted typically by omitting the column. What database? What have you tried and what specific issues have you seen?
-craig

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