I am developing a project, in that i use SQL Transactions to begin a
transaction like if i want to save the details of the user along with the
Address first i will save the details of the user and then the address.
in my database i have these type of files: Person, user, Address,
userAddress : person will have the details like personID, firstName,
LastName, SSN . . .
and user will userid, PersonID, . . . .
and in the same way Address will have a unique AddressID and this adddress
id will be corelated in UserAddress.
for this type of transactions i use SQL transactions.
but when i was going thorough a Micorsoft Enterprise Example : Duwamish i
came accross DataSet Transactions. in that, if there are any transactions he
first performs all the transactions in the DataSet and then update the
database.
SQLDataAdapter.Fill(Destination, Source)

from the above scenario which one is most reliable. . .

Thankyou,
Raghuram.

RE: Which one is better one SQL or DataSet Transactions by aconrad

aconrad
Thu Mar 10 19:21:12 CST 2005

DataSet only supports transactions at the row level. At that is not thread
safe.
You should always rely on Sql transactions for operations needing
transactional support.

Andrew Conrad
Microsoft Corporation