for deleting a particular row in the database, by giving a number as inout
the code i wrote is
dim i
Try
Dim ss As String = "delete transdett where no=@bgno"
cmd = New SqlCommand(ss, cn)
cmd.Parameters.Add("@no", textbox2.text)
cn.Open()
i = cmd.ExecuteNonQuery
cn.Close()
Label9.Text = i & " records deleted ! "
Catch x As Exception
MsgBox(x.Message)
End Try
can i know the alterations for updating a row in the dbase.
the code i wrote is
dim i
Try
Dim ss As String = "delete transdett where no=@bgno"
cmd = New SqlCommand(ss, cn)
cmd.Parameters.Add("@no", textbox2.text)
cn.Open()
i = cmd.ExecuteNonQuery
cn.Close()
Label9.Text = i & " records deleted ! "
Catch x As Exception
MsgBox(x.Message)
End Try
can i know the alterations for updating a row in the dbase.