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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:56:17+00:00 2026-05-25T18:56:17+00:00

Supposing I’ve got a bit of SQL that filters data by a column which

  • 0

Supposing I’ve got a bit of SQL that filters data by a column which is of type UniqueIdentifier.

Select * from core.Pages WHERE PageId = '1DC4E71C-4E68-489D-A837-2C9BA8DCC1DC'
(This guid was generated by the NewID() function)

For the purposes of a quick test/sanity check I thought I’d replace one of the characters with an ‘x’ and run the query again. Imagine my surprise when I got an error message:

Conversion failed when converting from a character string to
uniqueidentifier.

I thought GUID or UniqueIdentifier was unlimited in its scope ie. any alphanumeric character could be replaced with any other but it seems that SQL Server has its own ideas about what constitutes a GUID. Any use of the letter ‘X’ generates this error. Other characters don’t seem to upset the RDBMS.

Can anyone explain this?

  • 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-25T18:56:18+00:00Added an answer on May 25, 2026 at 6:56 pm

    GUIDs are a hexidecimal number – it’s not just “any character can be used to replace any other character”, the resulting string must be a valid hexidecimal number. It’s not the GUID itself that is necessarily unique, it’s that the range of numbers that the GUID can represent (2^128) that the odds of the same GUID being generated twice within a system are negligible.

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

Sidebar

Related Questions

Supposing that memory is not an issue does targeting a 64 bit OS make
Supposing that I have a remote machine on which I'm an admin, and I
Supposing I have the following type from an external library: union foreign_t { struct
Supposing you had a data model that looks like: /-----------------------\ /-----------------------\ | Patient |
Supposing I have one perl in /usr/bin (which came along with my os-distribution) and
Supposing that I have millions of user profiles, with hundreds of fields (name, gender,
What's the object type returned by Datepicker? Supposing I have the following: $(#txtbox).datepicker({ onClose:
MVC newbie question re binders. Supposing I have two strongly typed partial actions that
I have to detect port aggregation configuration on Linux. Supposing that the ifcfg-* files
Supposing I have a merge module that installs a file MyFile.txt to a certain

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.