J
Julian Stevens
Can anyone definitevly tell me if I can encrypt a password
using TripleDESCryptoServiceProvider with output as a
stream in a byte[] 1-dimensional array and save it as
varbinary in SQL Server 2000? I have read that a dataset
will not support this and that a datareader might? My
code works perfectly when I directly insert the data using
a stored proc without a dataset. But when I try to use a
dataset I get an error: Inconvertable type mismatch
between SourceColumn 'UsersPassword' of Byte[] and the
DataColumn 'UsersPassword' of SqlBinary. I tried using
System.Data.SqlTypes.SqlBinary.op_Implicit(bytPassword)to
convert the array to binary, but got the same error. Is
there a work around for this?
using TripleDESCryptoServiceProvider with output as a
stream in a byte[] 1-dimensional array and save it as
varbinary in SQL Server 2000? I have read that a dataset
will not support this and that a datareader might? My
code works perfectly when I directly insert the data using
a stored proc without a dataset. But when I try to use a
dataset I get an error: Inconvertable type mismatch
between SourceColumn 'UsersPassword' of Byte[] and the
DataColumn 'UsersPassword' of SqlBinary. I tried using
System.Data.SqlTypes.SqlBinary.op_Implicit(bytPassword)to
convert the array to binary, but got the same error. Is
there a work around for this?