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.
| 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 ::Functionostra_encrypt(p_username in varchar2, p_password in varchar2) return varchar2 asencrypt varchar2(20);-- isbegin 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 |
 |
|
|
|
|
|