Probleme Requete INSERT INTO
Bonjour Tout le monde !
Je galere a envoyer des données dans ma base SQL serveur !
je vous ecris le code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
// Chaîne de connexion
string connectString = "Data Source=PROD005\\SQLEXPRESS;Initial Catalog=Gestion_de_Stock;Integrated Security=True";
//string connectString = "database=Gestion_de_Stock; server=prod005\\sqlexpress; User ID=PROD005\\ridouan";
// Objet connection
SqlConnection connection = new SqlConnection(connectString);
// Ouverture
connection.Open();
SqlCommand command = new SqlCommand("INSERT INTO Utilisateur (NomUtil,PrenomUtil,MotPasseUtil,StatutUtil) values ('@txtNom@','@txtPrenom@','@txtMDP@','@txtStatut@')", connection);
// Fermeture connection
connection.Close(); |
:yaisse2:
Merci pour votre Future aide :p