ELIMINAR UN REGISTRO CON UN PROCEDURE EN VB.NET
Dim cmd As New SqlCommand
cmd.CommandText = "sp_Eliminar"
cmd.Parameters.Add("@cod", SqlDbType.Char, 5).Value = TextBox1.Text cmd.CommandType = CommandType.StoredProcedure
cmd.Connection = cn
cmd.ExecuteNonQuery()
MsgBox("Cliente Eliminado !!!")
cmd.CommandText = "sp_Eliminar"
cmd.Parameters.Add("@cod", SqlDbType.Char, 5).Value = TextBox1.Text cmd.CommandType = CommandType.StoredProcedure
cmd.Connection = cn
cmd.ExecuteNonQuery()
MsgBox("Cliente Eliminado !!!")
Comentarios