> While using scalar function of encryption on secured data , column data
> type should be for bit data, otherwise i cannot use decrypt scalar
> function to retrive data. But because of my design limitation i can not
> place datatype as for bit data so any other way?
Suresh you can cast yoru string from and to for bit data.
CAST (c1 AS VARCHAR(10) FOR BIT DATA)
CAST (c1bit AS VARCHAR(10) FOR SBCS DATA)
Since this cast does nothing more that strip the codepage and place it
back it's non invasive.
Cheers
Serge

Signature
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Suresh - 27 Apr 2006 15:58 GMT
Thanks it worked for me......
Mehmet Baserdem - 27 Apr 2006 16:57 GMT
Suresh,
Can you post your encrypt and decrypt statements' final version ? Just
column phrases would be enough.
thanks
Mehmet
Suresh - 02 May 2006 07:02 GMT
Here i am forwarding u exapmle with column name XYZ of Varchar type
DECRYPT_CHAR(CAST(XYZ AS VARCHAR(200) FOR BIT DATA))