Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Conversion error in INNER JOIN command

Author  Topic 

skiabox
Posting Yak Master

169 Posts

Posted - 2009-06-23 : 09:01:48
I get the following error (Conversion failed when converting from a character string to uniqueidentifier.) when I am trying to execute the following command :

SELECT ESFIItem.Code, ESFIItem.Description, ESFIItem.Manufacturer, ES00Blob.KeyID FROM [ESFIItem]
INNER JOIN ESMMCatalogueItem ON ESFIItem.Code = ESMMCatalogueItem.Code
INNER JOIN ES00Blob ON ESMMCatalogueItem.GID = ES00Blob.KeyID

GID is of uniqueidentifier type.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-06-23 : 09:03:11
INNER JOIN ES00Blob ON CAST(ESMMCatalogueItem.GID AS VARCHAR(36)) = ES00Blob.KeyID


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -