|
-
Dec 3rd, 2007, 04:20 PM
#1
Thread Starter
Addicted Member
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.
-
Dec 5th, 2007, 03:55 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|