Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4123418
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:36:32+00:00 2026-05-20T23:36:32+00:00

I need (I think) to get the current logged in userID so that I

  • 0

I need (I think) to get the current logged in userID so that I can update one of my tables that uses this userID as a foreign key. The problem is that the userID in the database does not match with this:

Guid currentUser = (Guid)Membership.GetUser().ProviderUserKey;
currentUser.toString();

results in dffaca0c-ae0b-8549-8073-1639985740be

whereas when I look in the database, it is 0CCAFADF0BAE498580731639985740BE

Why are they different values? (I only have one user). I am using an oracle database and provider for asp.net, but shouldn’t make any difference.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T23:36:32+00:00Added an answer on May 20, 2026 at 11:36 pm

    I believe these are the same values, but the display order is different. Looking at the 2 values:

    dffaca0c-ae0b-8549-8073-1639985740be
    0CCAFADF-0BAE-4985-8073-1639985740BE
    

    The ordering of bytes for the first 3 segments is of a different order:

    0CCA FADF => FADF 0CCA => DFFA CA0C == dffaca0c
    
    0BAE => AE 0B == ae0b
    
    4985 => 85 49 == 8549
    

    As @x0n comments, this looks like a difference in endianness with Oracle. According the this description of the structure, the endianness of the first 8 bytes is system dependent, while the endianness of the last 8 bytes is specifically big endian.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This SQL statement example is very close to what I think I need... update
I know that we can get the current location of Android device using getLastKnownLocation
Actually i need to get the device current position. like device is in south-west
We need to think big and our applications need to scale in order to
I think I need a way to perform a pivot or crosstab using C#
I think I need something akin to a rails eager loaded query with a
I don't think I need to post my code (there's lots of it) but
Friends, I have a strange need and cannot think my way through the problem.
I'm confused regarding each() and .each()... I think I need to use both, but
After looking at several questions/answers here, I'm not seeing what I think I need.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.