K
Karch
I am doing some experimenting with serialization (for use with Service
Broker) and I am having a problem converting from a .NET DateTime (in the
client application) to a SqlDbType.VarBinary (as passed to the stored
procedure VARBINARY(MAX)) and then finally back to a valid DATETIME in Sql
Server. It seems I have tried everything, but I always get an error when
trying to convert the hex value representation of the byte array to a valid
DATETIME in SQL. Any help appreciated.
So, it would be something like DateTime.Now -> SqlDbType.VarBinary ->
DATETIME
Broker) and I am having a problem converting from a .NET DateTime (in the
client application) to a SqlDbType.VarBinary (as passed to the stored
procedure VARBINARY(MAX)) and then finally back to a valid DATETIME in Sql
Server. It seems I have tried everything, but I always get an error when
trying to convert the hex value representation of the byte array to a valid
DATETIME in SQL. Any help appreciated.
So, it would be something like DateTime.Now -> SqlDbType.VarBinary ->
DATETIME