Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty foreign key vs uniqueidentifier
Message
From
05/03/2004 13:05:44
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Empty foreign key vs uniqueidentifier
Miscellaneous
Thread ID:
00883586
Message ID:
00883586
Views:
53
Hi everyones,

I'm sending this statement to SQL

select *, isnull(vendeurs.cVendID,space(10)) as cVendeur from JobH left join vendeurs on JobH.cVendId = Vendeurs.nID

When JobH.cVendID is empty I get error :
Server: Msg 8169, Level 16, State 2, Line 1
Syntax error converting from a character string to uniqueidentifier.

I know cVendID can be empty that's why I'm doing a left join not an inner join! Anything I can do?

TIA
Diane Robitaille eng.
Next
Reply
Map
View

Click here to load this message in the networking platform