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

Re: How to covert an Oracle GUID to string ? by Scott

Scott
Fri Nov 24 14:03:42 CST 2006

How about using the .ToString() method?


"Freddyboy" <Freddyboy@discussions.microsoft.com> wrote in message
news:EC892DB8-EEF3-4BE0-BC38-D6655AC1B6E2@microsoft.com...
> 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



Re: How to covert an Oracle GUID to string ? by Freddyboy

Freddyboy
Mon Nov 27 02:24:01 CST 2006

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


"Scott M." wrote:

> How about using the .ToString() method?
>
>
> "Freddyboy" <Freddyboy@discussions.microsoft.com> wrote in message
> news:EC892DB8-EEF3-4BE0-BC38-D6655AC1B6E2@microsoft.com...
> > 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
>
>
>