The Transaction property of the command has not been initializedĬmdString = "Select SiteID, PartID, Quantity " + I have also try the following code but i get this error:Įxecute requires the command to have a transaction object when the connection assigned to the command is in a pending local transaction. I need to use transaction if one of the 2 updates are failed then rollback else Commit is there something that i can do like this? MySecondTableAdapter.Update(MySecondDataset.Tables("MyTable")) MyFirstTableAdapter.Update(MyFirstDataset.Tables("MyTable")) Is there a way to use transaction in a commandbuilder ? i have the following save Code:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |