Solved

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

Posted on 2012-03-22
3
193 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:
Scott Pletcher 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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

707 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