need help in undestanding CRC32

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

need help in undestanding CRC32

Post by zulfi123786 »

Hi,

I have a column varchar(300) for which i am aplying CRC32 funtion, I want to know if there is a chance that any two different values may have same result from this function?
fareeda_b
Participant
Posts: 48
Joined: Sat Feb 23, 2008 4:25 pm

Post by fareeda_b »

Hai ,


viewtopic.php?t=118781&highlight=CRC32

Hopefully it will help you .
Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes.

What are you using the CRC32 value for, why are you generating it? If you are thinking it will create a unique surrogate key, that is not the right thing to be using it for.
-craig

"You can never have too many knives" -- Logan Nine Fingers
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

well i am using it to capture the changed records and want to know that if there is any possibility that two different records upon comparision using CRC32 result would have the same result.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes, a very very remote chance but a chance none-the-less. Still, I wouldn't let that dissuade you from using it for CDD as you are doing as that is the typical use for it here as a search would reveal.
-craig

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