Question : My SQL Command not working

I am wondering why my sql command is not working even though I am getting the correct employeeid.  Please see the following for my code and please tell me if there is something wrong with my sql commands.  I need help with sqlcommand1 and sqlcommand2.  Why are they not executing and deleting those records and what can I do to fix them?  Thank you!

Dim empdb As New EmployeeDB
        Dim employeeidint As Integer
        Dim username As String = SelectedUser.UserName

        employeeidint = empdb.getEmployeeIDbyUserName(username)

        Dim Connection As String
        Dim connect As SqlClient.SqlConnection


        Connection = ConfigurationManager.ConnectionStrings("LocalSqlServer").ToString
        connect = New SqlClient.SqlConnection(Connection)

        Try
            connect.Open()

            Dim sqlcommand1 = New SqlCommand("DELETE FROM MemberFamilyInfo WHERE EmployeeId = " & employeeidint, connect)

            Dim sqlcommand2 = New SqlCommand("DELETE FROM EmployeeInfo WHERE EmployeeId = " & employeeidint, connect)


        Catch ex As Exception

        End Try

        Membership.DeleteUser(SelectedUser.UserName, True)
        Response.Redirect("Users.aspx")

Answer : My SQL Command not working

Because you have not executed the commands:
1:
2:
3:
4:
5:
6:
Dim sqlcommand1 = New SqlCommand("DELETE FROM MemberFamilyInfo WHERE EmployeeId = " & employeeidint, connect)

            Dim sqlcommand2 = New SqlCommand("DELETE FROM EmployeeInfo WHERE EmployeeId = " & employeeidint, connect)

sqlcommand1.ExecuteNonQuery()
sqlcommand2.ExecuteNonQuery()
Random Solutions  
 
programming4us programming4us