473,411 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

How to work with commandbuilder and transactions ?????

hi all i need to work with the commandbuilder and with a transaction object
how can i do this ????

thks
JSB
please donīt tell me that i have to do this

ex:
mycommand.transaction = commandbuilder.insertcommand

is this logic ????? i donīt think so ...

Nov 20 '05 #1
9 4925
Hello,

"Joao Santa Barbara" <jo****@i24potugal.com> schrieb:
hi all i need to work with the commandbuilder and with a transaction object how can i do this ????


Please do not x-post ADO.NET related questions to the VB.NET language
group.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
Do you know that I'd almost bet you would have won your MVP award from only
the number of posts made just to turn people to the right newsgroup.
;-D

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello,

"Joao Santa Barbara" <jo****@i24potugal.com> schrieb:
hi all i need to work with the commandbuilder and with a transaction

object
how can i do this ????


Please do not x-post ADO.NET related questions to the VB.NET language
group.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #3
Hello,

"One Handed Man [ OHM ]" <te***************************@BTOpenworld.com>
schrieb:
Do you know that I'd almost bet you would have won your MVP
award from only the number of posts made just to turn people to
the right newsgroup.


I got it for my work in the German language ngs. There are fewer OT
postings than here.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4
Cor
Herfried and OHT,
I got it for my work in the German language ngs There are fewer OT
postings than here.


I did want to write, You would see him (and Armin) in the German groups but
I thought, why would I but now you did it yourself Herfried.
Cor
Nov 20 '05 #5
Joao:

Set all of the CommandBuilder Logic irrespective of the transaction...

so say you get your commandbuilder data built...
sqlCmdBuilder = New SqlClient.SqlCommandBuilder(da2)

And now you want to update....

Dim dbTrans as OleDbTransaction //or SQL or ODBC

dbTrans = someConnection.BeginTransaction

Try

myDataAdapter.Update(soemDataTable_DataSet)

transaction.Commit

Catch

Transaction.Rollback.

"Joao Santa Barbara" <jo****@i24potugal.com> wrote in message
news:Oo**************@tk2msftngp13.phx.gbl...
hi all i need to work with the commandbuilder and with a transaction object how can i do this ????

thks
JSB
please donīt tell me that i have to do this

ex:
mycommand.transaction = commandbuilder.insertcommand

is this logic ????? i donīt think so ...

Nov 20 '05 #6
Hi Herfried,

Why can't the rest of the world be more korrekt!?

Rutsch mir doch den Buckel runter!

;-)

Regards,
Fergus
Nov 20 '05 #7
Hello,

"Fergus Cooney" <fi******@tesco.net> schrieb:
Why can't the rest of the world be more korrekt!?

Rutsch mir doch den Buckel runter!


;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #8
Assigning a transaction to yourAdapater.SelectCommand object's Transaction
property, should be enough.

"Joao Santa Barbara" <jo****@i24potugal.com> wrote in message
news:Oo**************@tk2msftngp13.phx.gbl...
hi all i need to work with the commandbuilder and with a transaction object how can i do this ????

thks
JSB
please donīt tell me that i have to do this

ex:
mycommand.transaction = commandbuilder.insertcommand

is this logic ????? i donīt think so ...

Nov 20 '05 #9
thks
Marina ... for the help .. ;)

"Marina" <nospam> wrote in message
news:e0**************@TK2MSFTNGP12.phx.gbl...
Assigning a transaction to yourAdapater.SelectCommand object's Transaction
property, should be enough.

"Joao Santa Barbara" <jo****@i24potugal.com> wrote in message
news:Oo**************@tk2msftngp13.phx.gbl...
hi all i need to work with the commandbuilder and with a transaction

object
how can i do this ????

thks
JSB
please donīt tell me that i have to do this

ex:
mycommand.transaction = commandbuilder.insertcommand

is this logic ????? i donīt think so ...


Nov 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Joao Santa Barbara | last post by:
Hi all i have a table with an autonumber field with a based select , i want to get all the three others commands, my problem is, i have a ds and i want to insert a new row ( my database gives...
10
by: Joao Santa Barbara | last post by:
hi all i need to work with the commandbuilder and with a transaction object how can i do this ???? thks JSB please donīt tell me that i have to do this ex:
2
by: hch | last post by:
dataAdapter.Update(data, "TableName") won’t work! I was about to deploy my first website on the Internet only to discover that the dataAdapter.Update() throws the Server Error in the third...
3
by: Ed | last post by:
I just learned how to use the Commandbuilder and have researched it a little bit further and see that there is a dispose property. Should this be used after invoking the command builder or does...
1
by: Jeremy | last post by:
When executing myda.update(myds,"cert"). I get the message "The field 'Cert.DateofInspection' cannot contain a Null value because the Required property for this field is set to True. Enter a...
1
by: Manfred | last post by:
Hi all I don't understand why the following sample won't work. I added a tableadapter with drag and drop from the datasource which is a MS-Access DB and try to insert a record. The record is...
7
by: Ivan Jericevich | last post by:
For some reason the update does not change the data in the database. It was working fine before, I checked that the bindingsource and tableadapter are still on the form....what else could be wrong?...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.