Bonjour
voici une requête exécutée dans Oracle SQL Developer et qui renvoi un jeu de résultats :
Je souhaite faire la même requète depuis SQL Server avec un serveur Lié, mais cette dernière ne renvoi aucune données :
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 select ven_cde,ven_date_bl,ven_bl,ven_date_liv,cli_nom,art_code,art_lib1,VEN_CODE_EMB,sum(tra_pds_net_liv) POIDS_LIVRE, sum(tra_colis_liv) COLIS_LIVRE,VEN_COMMENT, VEN_COM_BL,VEN_COM_BL2,VEN_COM_PREPA,VEN_COM_PREPA2,VEN_REF_CDE,tra_sscc,tra_numpal from gcvente_det inner join gcarticle on ven_art_code=art_code inner join gcvente_trans on gcvente_det.ven_lot_seq=gcvente_trans.tra_lot_seq inner join gcvente_ent on gcvente_det.ven_numseq = gcvente_ent.ven_numseq inner join gcclient on ven_client = cli_code left join gcvente_pal on gcvente_trans.tra_seq = gcvente_pal.tra_seq where tra_numpal is null and ven_date_bl >= '02/11/2020' and ven_date_bl <= '06/11/2020' and cli_nom = 'SERVIDIS' and art_code like 'A3%' and tra_pds_net_liv > 0 group by ven_cde,ven_date_bl,ven_bl,ven_date_liv,cli_nom,art_code,art_lib1,VEN_CODE_EMB,VEN_COMMENT,VEN_COM_BL,VEN_COM_BL2,VEN_COM_PREPA,VEN_COM_PREPA2,VEN_REF_CDE,tra_sscc,tra_numpal order by ven_date_bl;
Voici le message que j'obtient :
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 select ven_cde,ven_date_bl,ven_bl,ven_date_liv,cli_nom,art_code,art_lib1,VEN_CODE_EMB,sum(tra_pds_net_liv) POIDS_LIVRE, sum(tra_colis_liv) COLIS_LIVRE,VEN_COMMENT, VEN_COM_BL,VEN_COM_BL2,VEN_COM_PREPA,VEN_COM_PREPA2,VEN_REF_CDE,tra_sscc,tra_numpal from ERP_CRETS..AG1.GCVENTE_DET inner join ERP_CRETS..AG1.GCARTICLE on ven_art_code=art_code inner join ERP_CRETS..AG1.GCVENTE_TRANS on gcvente_det.ven_lot_seq=gcvente_trans.tra_lot_seq inner join ERP_CRETS..AG1.GCVENTE_ENT on gcvente_det.ven_numseq = gcvente_ent.ven_numseq inner join ERP_CRETS..AG1.GCCLIENT on ven_client = cli_code left join ERP_CRETS..AG1.GCVENTE_PAL on gcvente_trans.tra_seq = gcvente_pal.tra_seq where tra_numpal is null and ven_date_bl >= '02/11/2020' and ven_date_bl <= '06/11/2020' and cli_nom = 'SERVIDIS' and art_code like 'A3%' and tra_pds_net_liv > 0 group by ven_cde,ven_date_bl,ven_bl,ven_date_liv,cli_nom,art_code,art_lib1,VEN_CODE_EMB,VEN_COMMENT,VEN_COM_BL, VEN_COM_BL2,VEN_COM_PREPA,VEN_COM_PREPA2,VEN_REF_CDE,tra_sscc,tra_numpal order by ven_date_bl;
Msg*7346, Niveau*16, État*2, Ligne*1
Impossible d'obtenir les données de la ligne à partir du fournisseur OLE DB "OraOLEDB.Oracle" du serveur lié "ERP_CRETS".
Le fournisseur OLE DB "OraOLEDB.Oracle" du serveur lié "ERP_CRETS" a retourné le message "ORA-01403: aucune donnée trouvée".
Partager