.NET Sybase AseCommand pass Hex string and store in database

122 views Asked by At

Currently we are executing stored procedure with hex string from .NET

command.executequery("exec spname 
x092837x737")

No single quote in string parameter.

We want to change it to

command.text = "spname"
command.parameters.add("x09283x737")
command.executequery()

Problem here is .NET considering parameter as string but not actual hex. Is there a way we can add parameters like below

command.parameters.add(x09283x737)

Without double quote.

Is it possible in .NET

0

There are 0 answers