Results 1 to 2 of 2

Thread: Updating Oracle table from a GridView

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    150

    Updating Oracle table from a GridView

    Guys , I have connected to Oracle successfully using (Oracle.DataAccess)

    I dropped SqlDataSource to my applicaiton , I choosed to datasource , selected the table and , and I finally draged and dropped a gridview, bind the gridview to the SqlDataSource.


    I'm able to Insert , but when I try to update , I get nothing , I checked the update statement , and I modified the WHERE clause , and I got the following error message :


    ORA-01036: illegal variable name/number

    My update statement is :

    Code:
    UpdateCommand='UPDATE "DUTIE" SET "STATUS" =1' 
    
    ConflictDetection="OverwriteChanges">
    As you can see , I'm not even using parameters , I don't know why I am getting this error message!!


    HELP
    Last edited by bomayed; Dec 3rd, 2007 at 04:30 PM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Updating Oracle table from a GridView

    I don't think you should need to use those quotes around the table name and column name. So your UpdateCommand should look like:

    UpdateCommand="UPDATE Dutie SET Status = 1"...

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