Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Encryption routine

Author  Topic 

chetansql
Starting Member

1 Post

Posted - 2005-03-08 : 02:49:40
Hi,
I am new to sql. i am performing the migration of my db from oracle to sql server 2k. Can anyone help me by providing me with an equivalent routine for sql server?
The routine in oracle is ::

Function
ostra_encrypt(p_username in varchar2, p_password in varchar2) return varchar2 as
encrypt varchar2(20);
-- is
begin
select ltrim(to_char(dbms_utility.get_hash_value(upper(p_username)||'/'||upper(p_password),1000000000,power(2,30)),rpad('X',29,'X')||'X')) into encrypt from dual;
return encrypt;
end ostra_encrypt;

thanks all.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-03-08 : 05:30:31
there is no such thing in sql server 2000.
if you want to encrypt something you must do it in the app.

Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -