Re: DeleteCommand

From: Brendan Reynolds (brenreyn)
Date: 10/21/04


Date: Thu, 21 Oct 2004 15:56:59 +0100

Well, on the face of it, the message seems to be saying that your
SelectCommand does not include the columns that make up the primary key of
the table. If the message is correct, then you'll need to add them. Is the
message not correct?

-- 
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com
The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
"David120375" <David120375@discussions.microsoft.com> wrote in message 
news:25A0A6CB-69FD-4844-811B-574CF61EF927@microsoft.com...
> Help me!!!
> When i want to delete a record i receive this message:
>
>
> Dynamic SQL generation for the DeleteCommand is not supported against a
> SelectCommand that does not return any key column information 


Relevant Pages

  • DeleteCommand
    ... Dynamic SQL generation for the DeleteCommand is not supported against a ... SelectCommand that does not return any key column information ...
    (microsoft.public.data.ado)
  • Re: dataadapter
    ... you can use sqlclient.sqlparameter in your selectcommand and deletecommand. ... > I am using a datagrid to display information from a table. ... for insert,delete, and update commands. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Am I blind? UpdatedRowSource
    ... Update calls acceptchanges as soon as it exectues, ... > The Update method will resolve your changes back to the data source, however> other clients may have modified data at the data source since the last time> you filled the DataSet. ... The Fill> method determines whether a new row will be added or an existing row will be> updated by examining the primary key values of the rows in the DataSet and> the rows returned by the SelectCommand. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Update a dataset
    ... The best way to avoid concurrency issues is to have a primary key that is ... > DeleteCommand and those exceptions have disappeared!! ... > the CommandBuilder there for adding rows. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Data set question
    ... Primary key of the table the select is over. ... Have you considered explicitly creating the UpdateCommand with the correct ... covers creating SelectCommand that allow creation of the UpdateCommand, ... > The error message I get: ...
    (microsoft.public.dotnet.languages.vb)