Encrypt function...
From: Yaheya Quazi (yquazi_at_ucmerced.edu)
Date: 03/24/04
- Next message: Tom Moreau: "Re: Return Key (identity) on INSERT operation (SQL/ASP)"
- Previous message: Bart Duncan [MSFT]: "Re: UNICODE and Encoding"
- Next in thread: Roji. P. Thomas: "Re: Encrypt function..."
- Reply: Roji. P. Thomas: "Re: Encrypt function..."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 23 Mar 2004 16:35:45 -0800
Here is code for my SP
CREATE PROCEDURE insert_profiles
@email as char(100),
@password as char(100)
AS
Declare @enc_password as varbinary(85)
Set @enc_password = encrypt(@password)
INSERT INTO [profiles]
([email],
[password] )
VALUES
( @email,
@enc_password)
GO
when I try to run it, it tries to insert null into
password field! Any idea? I am using the built in encrypt
function.
Thanks.
- Next message: Tom Moreau: "Re: Return Key (identity) on INSERT operation (SQL/ASP)"
- Previous message: Bart Duncan [MSFT]: "Re: UNICODE and Encoding"
- Next in thread: Roji. P. Thomas: "Re: Encrypt function..."
- Reply: Roji. P. Thomas: "Re: Encrypt function..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|