bonjour je suis débutante en C# et j'ai un problème je voudrais faire une requête insert contenant une requête Select c'est à dire que je veut faire une insert dans un table avec des donnés que je doit récupérer a partir d'un autre table avec la requête Select et la liaison entre ces tables ces sont des clés étrangères voici ma requête
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
 "INSERT INTO Prospect (Titre,Sujet,Civilite,Nom,Prenom,Tel_1,Tel_2,Fax,Email,Adresse,CodeP,Ville,Pays,Source,Evaluation,NomSCT,Fonction,Contact) SELECT 'Titre2', '" + TextBoxsujet.Text.ToString() + "','" + DropDownListcivilite.SelectedItem.ToString() + "','" + TextBoxnom.Text.ToString() + "','" + TextBoxprenom.Text.ToString() + "','" + TextBoxtelephone.Text.ToString() + "','" + TextBoxnum.Text.ToString() + "','" + TextBoxfax.Text.ToString() + "','" + TextBoxemail.Text.ToString() + "','" + TextBoxrue.Text.ToString() + "','" + TextBoxpostal.Text.ToString() + "',Ville.Id_Ville,Pays.ID_Pays,Source_Prosp.Id_Source,Evaluation.Id_Eval,'" + TextBoxNomS.Text.ToString() + "','" + TextBoxFonction.Text.ToString() + "','" + TextBoxContact.Text.ToString() + "' FROM Pays,Ville,Source_Prosp,Evaluation WHERE 'DropDownListpays.SelectedItem'= Pays.Libelle AND 'DropDownListVille.SelectedItem'=Ville.Libelle AND 'DropDownListsource.SelectedItem'=Source_Prosp.Libelle AND 'DropDownListevaluation.SelectedItem'=Evaluation.Libelle";
la base c'est SQLserver
aide moi svp