there is a big problem
my database contains three columns
id-varchar(bcuz my entery contains / and in int its not possible)
name-varchar
bookname-varchar
i m adding and deleting by Stored Procedure
there is no problem while adding but problem comes while deleting the record
suppose my enteries are
1/2
1/3
21
its not deleting 1/2 and 1/3 as they contains (slash)
see delete code
pic for more info
Showing Error even entry exist
Sql Entry
any sol. i want to delete the entry from frontend only
my database contains three columns
id-varchar(bcuz my entery contains / and in int its not possible)
name-varchar
bookname-varchar
i m adding and deleting by Stored Procedure
there is no problem while adding but problem comes while deleting the record
suppose my enteries are
1/2
1/3
21
its not deleting 1/2 and 1/3 as they contains (slash)
see delete code
VB.NET:
Try
con.Open()
flag_author = check_data("select author_id from authorlib where author_id= " & TextBox1.Text & " ", con)
If flag_author Then
cmd = New SqlCommand("deleteauthor", con)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.AddWithValue("@author_id", TextBox1.Text)
cmd.ExecuteNonQuery()
MessageBox.Show("record delete")
flag_author = False
Else
MessageBox.Show("This author Number Do not Exist", "Stop", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error)
End If
con.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
con.Close()
End Try
pic for more info
Showing Error even entry exist

Sql Entry

any sol. i want to delete the entry from frontend only