2

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:

  1. applicant_name
  2. doc_id
  3. doc_name
  4. 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?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Marko Vidalis
  • 331
  • 1
  • 7
  • 18

1 Answers1

0

Are you using data binding to load it from adapter, if yes pz check if I insert update delete statement is generated by adapter.