SqlCommand.Parameters adicionar, alterar e remover

 
using (SqlConnection Conn = new SqlConnection(sConnectionString)) { sSQL = @"SELECT userName FROM tblUsers WHERE userID = @id"; SqlCommand cmd = new SqlCommand(sSQL, Conn); //Adicionar já com um valor cmd.Parameters.AddWithValue("@id", 1); //Alterar o…
Continue lendo
Por Cesar Cassiano Schimanco