Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty foreign key vs uniqueidentifier
Message
De
05/03/2004 13:05:44
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Empty foreign key vs uniqueidentifier
Divers
Thread ID:
00883586
Message ID:
00883586
Vues:
55
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform