My app interacts with both Oracle and SQL Server databases using a custom data access layer written in ADO.NET using DataReaders. Right now I\'m having a problem with the c
I just had this same issue when storing and reading Guids from Oracle.
If your app needs to store and read Guids from Oracle, use the FlipEndian function from this thread:
.NET Native GUID conversion
Byte[] rawBytesFromOracle;
Guid dotNetGuid = new Guid(rawBytesFromOracle).FlipEndian();
The flip is only required when reading back from Oracle.
When writing to Oracle use Guid.ToByteArray() as normal.
I spent TOO much time trying to get this simple task accomplished.
Steve