K
Karunakararao
Hi All
I'm using sybase database, I have a binary datatype column in a table, when
I'm trying to store the char(128) value into that, I'm getting syntax
violation error.
If I take "w" as the password its ascii value is 119, when you add +9 to
that, it will be 128. How to insert this value into a binary datatype
column. [ Generally when you input the ascii chars to this it will
automatically convert it to hexadecimal values and in the database you can
see only hexadecimal chars].
In a loop I'm writing this logic.
Byte[] tempBytes = Encoding.ASCII.GetBytes(UserPassword.Substring(intIndex,
1));
tempBytes = new Byte[]{Convert.ToByte((Convert.ToInt32(tempBytes[0]) + 9))};
strPasswd = strPasswd + Encoding.ASCII.GetString(tempBytes);
Thanks in Advance
Karunakarraop
I'm using sybase database, I have a binary datatype column in a table, when
I'm trying to store the char(128) value into that, I'm getting syntax
violation error.
If I take "w" as the password its ascii value is 119, when you add +9 to
that, it will be 128. How to insert this value into a binary datatype
column. [ Generally when you input the ascii chars to this it will
automatically convert it to hexadecimal values and in the database you can
see only hexadecimal chars].
In a loop I'm writing this logic.
Byte[] tempBytes = Encoding.ASCII.GetBytes(UserPassword.Substring(intIndex,
1));
tempBytes = new Byte[]{Convert.ToByte((Convert.ToInt32(tempBytes[0]) + 9))};
strPasswd = strPasswd + Encoding.ASCII.GetString(tempBytes);
Thanks in Advance
Karunakarraop