How to covert an Oracle GUID to string ?

G

Guest

Hi,

I would like to convert an Oracle GUID to its string representation and I
don't know how I can do this.

Could you help me please.

I need this GUID in its string representation to execute an sql query later
with it as primary key.

Thanks for your help

Best Regards

Fred
 
G

Guest

In fact, I have this guid in my oracle database :
6D2F930667BB3C43B5BEE86610DCFE3E

After I do this to get it with its string representation :
Guid aGuid = new Guid(myGuidByteFormatted); // myGuidByteFormatted = byte[]
string myUniqueIdStringFromatted = aGuid.ToString();

The string representation after this code si :
06932f6d-bb67-433c-b5be-e86610dcfe3e

As you can see easily both guids are not the same.
I don't know why. Is it a behavior specific to Oracle ?
How can I solve my problem ?

Thanks for your help.

Fred
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top