Hi, It is not the statement I want but that my following code is giving me error.: **Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.Click SqlConn = New SqlConnection("Data Source=SOORAJ;Initial Catalog=TrackEmp;User Id=sa;Password=; ") Dim cmdText As String = "DELETE FROM EmpMaster where [Name] ='" & txtName.Text & "'" SqlConn.Open() Dim cm As New SqlCommand(cmdText, SqlConn) cm.ExecuteNonQuery() SqlConn.Close() MsgBox(" The Record has been Deleted") End Sub** This is the error it is giving me An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional information: System error. Can someone tell me where I am going wrong?? thanks and regards, lis :confused: Thinking is like loving and dying. Each of us must do it for himself.