Solved

Trying to add two rows to existing table in SQL, but receiving conversion on Uniqueidentifier

Posted on 2012-03-22
3
186 Views
Last Modified: 2012-03-22
I am trying to add two rows to an existing table in SQL Server Management Studio but receive this error:

"Conversion failed when converting from a character string to uniqueidentifier"

My assumption is that the tool I am using to load data into generates a field called _Product_ID which is unique. So I inserted some random value ({CEABDFA8-59AD-41B2-9848-898FF0EE7FDS}) to that column but still received that error.

Any thoughts?
0
Comment
Question by:Jintonix415
3 Comments
 
LVL 11

Expert Comment

by:Muhammad Kashif
ID: 37754284
Post your query
0
 

Author Comment

by:Jintonix415
ID: 37754587
insert into MyTable
([Field1], [Field2], [Field3], [Field4], [_U_1D_Product])
Values
('Level Pay', 2344343, 60, 'Orinda', '{CEAABDFA8-59AD-41B2-9848-898FF0EE7AFS})
0
 
LVL 69

Accepted Solution

by:
ScottPletcher earned 500 total points
ID: 37754635
"S" would not be valid in a uniqueident.

All characters must be 0-9 / A-F only.

It's actually a hexadecimal value.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now