I have a page in my program which has a DataGridView
object on it.
It is populated by a query that selects data from the database table called DOCS.
The table has 4 columns:
- applicant_name
- doc_id
- doc_name
- doc_contents
I'm trying to add a delete query for a user to delete a document from the table when they select it and hit the 'delete' button.
When I try to create the delete query, I get the
"Failed to get schema for this query"
message and I can't understand why.
My query looks like this:
DELETE FROM DOCS
WHERE (doc_id = @Param3)
Could anyone explain why I'm getting this error?