You are here: Update a uniqueidentifier from a string!!! « MsSQL Server « IT news, forums, messages
Update a uniqueidentifier from a string!!!

Posted by Mike R on 03/09/06 18:14

Hi,

I have this simple bit of SQL

UPDATE A
SET a.owninguser = c.companyname
--select a.owninguser,c.companyname
from campaignresponsebase c
inner join activitypointerbase a on a.activityid = c.activityid
WHERE Companyname is not null

Companyname contains a string which happens to be a guid. Owninguser is a
guid.

I keep getting

Server: Msg 8169, Level 16, State 2, Line 1
Syntax error converting from a character string to uniqueidentifier.

When I run this, I have also tried CAST(c.companyname as uniqueidentifier)
and still get the same.

Any pointers?

Thanks

Mike

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация