Microsoft OLE DB Provider for SQL Server error '80004005'
The precision is invalid.
/Intranet/hr/Change_Password _db.asp, line 16
-------------------------------------------------------------------------------------------------------------------
-----------------------------ON STORE PROCEDURE------------------------------------------------
[CODE]
[@user_id numeric(8),
..
UPDATE TblUser_ID SET Password=@pwd,D ate_Update=getd ate(),Update_By =@user_id WHERE Personel_No=@us er_id
/CODE]
The reason I change to numeric datatype:/
Problems occur when I change from varchar datatype to numeric type....
For some reason INSERT statement on store procedure run smoothly without error, But not for UPDATE statement????
The precision is invalid.
/Intranet/hr/Change_Password _db.asp, line 16
-------------------------------------------------------------------------------------------------------------------
Code:
rm.Parameters.Append rm.CreateParameter("@user_id",adNumeric,adParamInput,8,request("NoStaf"))
[CODE]
[@user_id numeric(8),
..
UPDATE TblUser_ID SET Password=@pwd,D ate_Update=getd ate(),Update_By =@user_id WHERE Personel_No=@us er_id
/CODE]
The reason I change to numeric datatype:/
Code:
CREATE TABLE [dbo].[tblUser_ID]( [Personel_No] [numeric](8, 0) NOT NULL,
For some reason INSERT statement on store procedure run smoothly without error, But not for UPDATE statement????
Comment