
- Forum
- Programming Talk
- Microsoft .NET
- VB.NET 2005 (Database Deletion issues)
VB.NET 2005 (Database Deletion issues)
This is a discussion on VB.NET 2005 (Database Deletion issues) within the Microsoft .NET forums, part of the Programming Talk category; Hi all, I am new to these forums and I am having some trouble with trying to delete records from ...
-
VB.NET 2005 (Database Deletion issues)
Hi all,
I am new to these forums and I am having some trouble with trying to delete records from an oracle table using the below syntax/object
DataSetXX.TableYYY.Rows(n).Delete()
What is happening is the command is completing sucessfully yet the records are not being deleted. Is there something else I need to add to convert these tagged records for deletion into actual deletion?
I am using the Oracle native driver, I have also tried the OLE driver as well.
Any help is appreciated.
Regards,
Kent Lawrence.
-
Hello Kent,
Originally Posted by PlanTec
Hi all,
I am new to these forums and I am having some trouble with trying to delete records from an oracle table using the below syntax/object
DataSetXX.TableYYY.Rows(n).Delete()
What is happening is the command is completing sucessfully yet the records are not being deleted. Is there something else I need to add to convert these tagged records for deletion into actual deletion?
I am using the Oracle native driver, I have also tried the OLE driver as well.
Any help is appreciated.
Regards,
Kent Lawrence.
it's kind of tricky when it comes to oracle database... can you send me the source code or paste the code ...
Thanks,
John
-
Looks like you are missing to call the AcceptChanges method on the datatable after deleting the row
AcceptChanges is used to commit all the changes made to the datatable since the last time AcceptChanges was called.Code:DataSetXX.Tables[0].Rows(n).Delete(); DataSetXX.Table[0].AcceptChanges();
Hi all,
I am new to these forums and I am having some trouble with trying to delete records from an oracle table using the below syntax/object
DataSetXX.TableYYY.Rows(n).Delete()
What is happening is the command is completing sucessfully yet the records are not being deleted. Is there something else I need to add to convert these tagged records for deletion into actual deletion?
I am using the Oracle native driver, I have also tried the OLE driver as well.
Any help is appreciated.
Regards,
Kent Lawrence.
-
Sponsored Ads

Reply With Quote






