Dim myConnection As SqlConnection
Dim myCommand As SqlCommand
Dim ra As Integer
Dim sql As String
myConnection = New SqlConnection("Server=company-2cc160d\sqlexpress;uid=sa;pwd=123;database=library")
myConnection.Open()
sql = "delete * from test1 where id=50"
myCommand = New SqlCommand(sql, myConnection)
ra = myCommand.ExecuteNonQuery()
myConnection.Close()