Results 1 to 3 of 3

Thread: [RESOLVED] Invalid Operation Exception

  1. #1

    Thread Starter
    Addicted Member mouse88's Avatar
    Join Date
    Mar 2009
    Location
    South Wales, United Kingdom
    Posts
    225

    Resolved [RESOLVED] Invalid Operation Exception

    Does anyone know why the following exception would occur:

    "Dynamic SQL generation for the DeleteCommand is not supported against a SelectCommand that does not return any key column information."

    All i am doing is deleting a row from my dataset and updating my database.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Invalid Operation Exception

    Please post the code generating this error.

  3. #3

    Thread Starter
    Addicted Member mouse88's Avatar
    Join Date
    Mar 2009
    Location
    South Wales, United Kingdom
    Posts
    225

    Re: Invalid Operation Exception

    Problem now solved it was because i didnt have a primary key on my table it was throwing this exeption for some reason. Cheers anyways always appreciate the help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width