From: Carlos G. A. <car...@te...> - 2003-07-23 17:48:36
|
Hello: > 0 is not valid, so i just embrace it within a string which is same thing? The third parameters needs to be the SourceColumn not the value. Try this: command.Parameters.Add("@userloginname", FbType.VarChar).Value = "Lee"; command.Parameters.Add("@userloginpass", FbType.VarChar).Value = "Pass"; command.Parameters.Add("@userloginid", FbType.Integer).Value = 0; command.Parameters.Add("@userprivilegeid", FbType.SmallInt).Value = 0; command.Parameters["@userloginid"].Direction=ParameterDirection.Output; command.Parameters["@userprivilegeid"].Direction=ParameterDirection.Output; -- Best regards Carlos Guzmán Álvarez Vigo-Spain |