Bonjour,

j'utilise ce code pour récupérer un enregistrement d'une table de la base de donnée SqlServer :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
SqlConnection SqlConection = new SqlConnection(ConfigurationManager.ConnectionStrings["SQLDBSConnectionString1"].ConnectionString);
SqlCommand SqlCommand  = new SqlCommand();
SqlCommand.CommandType = CommandType.Text;
SqlCommand.Connection  = SqlConection;
 
SqlCommand.Parameters.Add(new SqlParameter("@code", int.Parse(CodeFiliale.Text.ToUpper())));
SqlCommand.Parameters.Add(new SqlParameter("@nom", NomFiliale.Text.ToUpper()));
SqlCommand.Parameters.Add(new SqlParameter("@desig", DesigFiliale.Text.ToUpper()));
SqlConection.Open();
SqlCommand.ExecuteNonQuery();
Maintenant, je cherche à afficher le contenu de chaque colone dans un TextBox ?