hello
in this exemple i have this error message "error to convert string to 
byte[]"

conn = new FbConnection(_fbConnectionString);
FbCommand cmd = new FbCommand("PROFILES_SETPROPERTIES", conn);
conn.Open();
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(CreateInputParam("@ApplicationName",FbDbType.VarChar, 
ApplicationName));
cmd.Parameters.Add("@PropertyNames", FbDbType.Text, names.Length).Value 
=  names;
cmd.Parameters.Add("@PropertyValuesString", 
FbDbType.Text,values.Length).Value = values;
cmd.ExecuteNonQuery();

or  names and values are strings and when i debug fbcommand.cs there 
are
a break in UpdateParameterValues() at :

switch (this.statement.Parameters[i].DbDataType)
 case DbDataType.Binary : here there is a break;

 OR i think the break should be in

 case DbDataType.Text:

because the parameters are set with fbdbtype.Text !

What is the problem ?

thanks




_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to