|
-
Dec 31st, 2003, 03:53 AM
#1
Thread Starter
New Member
deleting row from dataset
hi gurus and pros,
I used the following code to delete a row from dataset:
the problem that I have an error msg of "System Error" when trying to update the dataset using dataadapter.update method.
every thing else works fine like updating existing records or adding new entries.
any suggestion
-
Dec 31st, 2003, 05:10 AM
#2
Frenzied Member
Please post error description. Dont you have any constraints in the database not letting the row to be deleted?
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Dec 31st, 2003, 08:39 AM
#3
Sleep mode
Or execute DELETE command . Here's a very good tutorial .http://samples.gotdotnet.com/quickstart/winforms/
-
Dec 31st, 2003, 09:19 AM
#4
Thread Starter
New Member
thank you for your reply and sorry for my annoying questions...
error msg is:
"An unhandled exception of type 'System.Data.SqlClient.SqlException' occured in system.data.dll
Additional information: System error."
and I don't have any constraints on the DB. (or at least, this's what I think )
by the way: this problem doesn't happen when deleting the last row in the database.
Last edited by undo; Dec 31st, 2003 at 09:34 AM.
-
Dec 31st, 2003, 11:27 AM
#5
Addicted Member
Are you telling it which row to delete?
Is would also probably be helpful if you posted the entire code in question because it is most likely not that exact line causing the error.
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
|