This discussion is archived
0 Replies Latest reply: Oct 18, 2011 2:06 PM by 895115 RSS

How to insert a MembershipUser (guid) in a Oracle Table with Oracle Client

895115 Newbie
Currently Being Moderated
I have this code from an Insert Method

PdfParms[3] = new OracleParameter(PARAM_USER_ID_IN, OracleDbType.Raw);
PdfParms[3].Value = userId;

Where userId his a byte array from here

public static byte[] GetUserID()
MembershipUser x = Membership.GetUser();
if (x != null && x.ProviderUserKey != null)
return ((Guid)x.ProviderUserKey).ToByteArray();
return null;

I just switched from System.Oracle.Client
to Oracle.DataAccess.Client;

and now I can't insert any byte array.

What can I do ?



  • Correct Answers - 10 points
  • Helpful Answers - 5 points