I notice that when I generate various guids, they appear to have a mix of
upper and lowercase letters.
Is the uniqueness of a guid case-sensitive?
In other words, if I generate a guid, and then store it in a database that
is case insensitive (or if I convert the letters to upper), is it still
statistically unique? 4 33922 Is the uniqueness of a guid case-sensitive?
No. A guid is really just 128 bits of data. The string representation
is just one way of making it a little easier to read and work with.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
The "letters" you refer to are actually hex digits A-F, so no, case
doesn't matter.
Regards,
Dan
"J.Marsch" <je****@ctcdeve loper.com> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. . I notice that when I generate various guids, they appear to have a mix of upper and lowercase letters.
Is the uniqueness of a guid case-sensitive?
In other words, if I generate a guid, and then store it in a database that is case insensitive (or if I convert the letters to upper), is it still statistically unique?
"J.Marsch" <je****@ctcdeve loper.com> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. . I notice that when I generate various guids, they appear to have a mix of upper and lowercase letters.
Is the uniqueness of a guid case-sensitive?
In other words, if I generate a guid, and then store it in a database that is case insensitive (or if I convert the letters to upper), is it still statistically unique?
A GUID is a 128 bit structure. The normal string representation uses 32 hex
digits to represent the 32 nibbles in the structure, and is not
case-sensative.
EG
B864A17D-E6E6-49C0-AD41-DC7BBFCAF0D8
Other representations are concevable, eg base64, and if you have fewer than
25 characters, it MUST be case-sensative.
But you should consider storuing the GUID in a binary field in the database,
intead of a text field.
David
Thank you to all who replied. At one time, I had been 100% sure that the
guids were a hexadecimal representation, but then someone asked me why the
digits A-F are mixed case (VS.Net 2003 tools | generate GUID -- seems as
though it's always the 3rd segment in the string). I didn't have an answer,
so suddenly I had to question my understanding of the universe.
I'm still out to lunch on the universe thing, but at least I know that I was
right about the guids <g>
Thanks again.
"J.Marsch" <je****@ctcdeve loper.com> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. . I notice that when I generate various guids, they appear to have a mix of upper and lowercase letters.
Is the uniqueness of a guid case-sensitive?
In other words, if I generate a guid, and then store it in a database that is case insensitive (or if I convert the letters to upper), is it still statistically unique?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Elliot Temple |
last post by:
Hi I have two questions. Could someone explain to me why Python is
case sensitive? I find that annoying. Also, why aren't there
multiline comments? Would adding them cause a problem of some sort?
Thanks,
Elliot
|
by: Matthew Louden |
last post by:
I am using VBScript for ASP. The control value must be case sensitive? The
following example should print the "fname" value, but if if I change
"submit" back to "SUBMIT". Then it works fine.
<%
If (Request.QueryString("submit") = "submit") Then
Response.Write(Request.QueryString("fname"))
End if
%>
|
by: J. Muenchbourg |
last post by:
I'm doing a few tests with simple .net scripts, and I noticed that I
display the following error message at ErrMessage.Text if I don't enter
"BLUE" in capital letters into my input textbox:
<%@ Page Language="VB" %>
<script runat="server">
Sub Check_Value(Src As Object, Args As EventArgs)
If Color.Text <> "BLUE" Then
|
by: xAvailx |
last post by:
Hello:
I didn't find any documentation that notes save point names are case
sensitive, but I guess they are...
Stored Proc to reproduce:
/* START CODE SNIPPET */
If Exists (Select * From sysobjects Where Type = 'P' and Name =
|
by: Monty M. |
last post by:
Hello;
I was wondering if anyone can assist me with this problem. Here are
the tools I am using:
Language: C#
Database: MS SQL Server 2000
Application: Visual Studio 2005
1. I have a table whose primary key is a varchar data type.
| |
by: benhoefer |
last post by:
I have been searching around and have not been able to find any info
on this. I have a unique situation where I need a case sensitive map:
std::map<string, intimap;
I need to be able to run a find on this map with a case sensitive AND
case insensitive search. I need to be able to change this dynamically
during execution. Is this possible? Any thoughts on this? I
understand that I can make the map case insensitive, but that is not...
|
by: Bart |
last post by:
Why is C case sensitive?
I know it's a bit late to change it now but there would seem to be far
more advantages in ignoring letter case in source code.
In real life such a situation would be ridiculous (eg. the 16 ways of
writing my name) and, in some cases, frightening.
Is it to avoid having to think up new identifiers? And how would you
distinguish case when reading out bits of code over the phone for
|
by: Lucky |
last post by:
Hi guys,
I'm having problem with case sensitive collation of SQL Database. one
my client is having case sensitive database. While developing the Data
Layer i didn't consider this scenario.
the problem is I've all Store Procedures in the Database and I'm using
sqlcommand to execute those SPs with Parameters.
for e.g.
Data Layer:
......
SqlCommand cmd = new SqlCommand();
|
by: Rafe |
last post by:
Hi,
I'm working within an application (making a lot of wrappers), but the
application is not case sensitive. For example, Typing obj.name,
obj.Name, or even object.naMe is all fine (as far as the app is
concerned). The problem is, If someone makes a typo, they may get an
unexpected error due accidentally calling the original attribute
instead of the wrapped version. Does anyone have a simple solution for
this?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |