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 6024643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:11:07+00:00 2026-05-23T04:11:07+00:00

Wiki said it used to make class,interface uniquely identifier , how about object (actual

  • 0

Wiki said it used to make class,interface uniquely identifier , how about object (actual instance) ??

When work with SQL,i also see the GUID for ID field (table user,..etc in database aspnetdb in asp.net MVC template project)

So I want to clearly understand the GUID usage, which case should use it , and is it really unique ,

Any explain appreciated

thank

  • 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-23T04:11:08+00:00Added an answer on May 23, 2026 at 4:11 am

    For a good overview of what a GUID is, check out our good friend Wikipedia: GUID.

    and is it really unique

    GUIDs generated from the same machine are virtually guaranteed to be unique. You have an infinitesimally small chance of generating the same one twice on the same machine. Arguably you have a tiny chance of generating two GUIDs the same out in the wider world, but that chance is still small and the chances of those two GUIDs ever meeting are also pretty small. In fact you probably have a greater chance of the Large Hadron Collider generating a black hole that swallows the Earth than you would having two identical GUIDs meeting somewhere on a network.

    Because of this, some people like to use it as the primary key for database tables. Personally i don’t like to do this because:

    • an auto-incrementing integer gives me enough uniqueness to be able to use it as a primary key
    • GUIDs are a massive PITA to deal with when you are writing SQL queries.

    Wiki said it used to make class,interface uniquely identifier

    If you need an identifier that is unique across several disparate areas (like hives in a registry), then GUIDs are a good solution. In this particular case they are being used to identify a type. A concrete instance could also internally use a GUID identifier, but this is really only useful for data objects.

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

Sidebar

Related Questions

Community Wiki Question Every time I work on a project involving passwords or securing
For my small wiki application, I mostly need to have the textarea used to
Erm - what the question said. It's something I keep hearing about, but I've
I'm reading wiki about the singleton pattern and I'm not sure if I understand
For Windows there is Win32 API, what about for Mac? On Wikipedia http://en.wikipedia.org/wiki/Cocoa_(API) it
I just read the wiki article about CRTP , and I'm a little confused
this wiki page gave a general idea of how to convert a single char
This wiki post outlines both a problem and a solution. I wanted to post
In wiki article for REST it is indicated that if you use http://example.com/resources DELETE,
Community wiki'ed already, folks. What part of Apache Commons saves you the most time?

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.