Bonjour,
j'ai un probleme de collation avec le script sql suivant:
A l'execution, j'ai le message d'erreur suivant dont les lignes indiquées correspondent au 3 tests IF...END
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 USE [loccontrol] DECLARE @lcCodPai char(60) -- Get the country code. SELECT @lcCodPai=cconvar from tabtvar WHERE cnomvar='GCCODPAI' USE [sflbaku] IF @lcCodPai = 'TZA' BEGIN UPDATE ahotpar set nnumtab2 = 1 where ccodigo in ('IMTPER1', 'IMTPER2', 'IMTPER3', 'EXCPER1', 'EXCPER2', 'EXCPER3') END IF @lcCodPai = 'MDG' BEGIN UPDATE ahotpar set nnumtab = 15 where ccodigo = 'IMTRAN3' and cmoneda = '3' END IF @lcCodPai = 'LBR' UPDATE ahotpar set nnumtab = 10000 where ccodigo = 'IMTLIMA' and cmoneda = '2' and cstrtab = 'S' END BEGIN
J'ai alors testé plusieurs code en essayant de modifier la collation parMsg 468, Level 16, State 9, Line 278
Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "French_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Line 295
Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "French_CI_AS" in the equal to operation.
Msg 468, Level 16, State 9, Line 310
Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "French_CI_AS" in the equal to operation.
afin d'avoir @lcCodPai_ en Latin1_General_CI_AS au lieu de French_CI_AS mais ca ne change rien, j'ai toujours les erreurs.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 USE [sflbaku] DECLARE @lcCodPai_ char(60) SET @lcCodPai_ = @lcCodPai COLLATE database_default
Est ce que quelqu'un aurait une idée svp?
Partager