Torna al Thread

query = "INSERT INTO AnagraficaStagisti(Nome, Cognome, DataNascita, LuogoNascita, Ruolo) VALUES ('" + nome + "','" + cognome + "','" + datanascita + "','" + luogonascita + "','" + ruolo + "')"; try { comando.ExecuteNonQuery(); } catch (Exception err) { string messaggio = err.Message; } finally { //chiudi tutto } comando = new SqlCommand(query, cn); comando.ExecuteNonQuery();
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5