473,320 Members | 2,164 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,320 software developers and data experts.

I have created ASP.Net application using VB.Net and .Net 1.1

I have couple of SQL insert statements spread across SQL Server and Oracle
database and legacy system. All these multiple insert statements (multiple
insert with in SQL and other databases) are written in the same page but
spread across different functions and sub procedures. How to make all these
insert statements as transaction based statements?
Veer
Nov 18 '05 #1
3 991
You need a distributed transaction.
Here's more info:
http://msdn.microsoft.com/library/de...ansactions.asp

http://msdn.microsoft.com/library/de...ttranvbnet.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Veeresh" <Ve******@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl...
I have couple of SQL insert statements spread across SQL Server and Oracle
database and legacy system. All these multiple insert statements (multiple
insert with in SQL and other databases) are written in the same page but
spread across different functions and sub procedures. How to make all these insert statements as transaction based statements?
Veer

Nov 18 '05 #2
Steve,
Thanks for these links.
Veer


"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:u2**************@TK2MSFTNGP09.phx.gbl...
You need a distributed transaction.
Here's more info:
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpcondistributedtransactions.asp
http://msdn.microsoft.com/library/de...us/dndotnet/ht
ml/disttranvbnet.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Veeresh" <Ve******@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl...
I have couple of SQL insert statements spread across SQL Server and Oracle database and legacy system. All these multiple insert statements (multiple insert with in SQL and other databases) are written in the same page but
spread across different functions and sub procedures. How to make all

these
insert statements as transaction based statements?
Veer


Nov 18 '05 #3
Steve,
Let us say I have all my database operations code in one page and all the
database activity is with only one database, then page directive Transaction
set to transaction mode will work fine.
I checked with inserting with two tables one getting failed, it works just
fine. Hopefully it works with delete/update cross different sql statements.
Not tested with connection to different databases especially to Oracle.
What is your suggestion.
Veer
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:u2**************@TK2MSFTNGP09.phx.gbl...
You need a distributed transaction.
Here's more info:
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpcondistributedtransactions.asp
http://msdn.microsoft.com/library/de...us/dndotnet/ht
ml/disttranvbnet.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Veeresh" <Ve******@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl...
I have couple of SQL insert statements spread across SQL Server and Oracle database and legacy system. All these multiple insert statements (multiple insert with in SQL and other databases) are written in the same page but
spread across different functions and sub procedures. How to make all

these
insert statements as transaction based statements?
Veer


Nov 18 '05 #4

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

Similar topics

0
by: Ben Jones | last post by:
Hi there, I am looking into the ease of implementing the localization/globalization features of .NET using C#. I have a test app which creates a ResourceManager and attempts to load a resource...
2
by: Next | last post by:
Hello all, I have a windows service that was suppose to write some events into its own EventLog. I created the EventLog using the component on VS 2003 toolbar Added an installer for it. Set...
3
by: Paul Kenny | last post by:
Hi, I have developed an application that uses mixed C++ to integrate managed ..NET applications with an unmanaged C++ application whose behaviour I cannot change. The unmanaged C++ application...
7
by: Ryan Taylor | last post by:
Hi. I have some code that dynamically generates a PDF and spits this content directly to the web browser. I use HTMLDoc to create the Pdf's from html. So the user can click on a button "Print...
4
by: mcwooq | last post by:
Hi, I just installed the VS.Studio 2005 Team Edition for Developper and encountered severe problems with debugging ASP.NET 2.0 projects. Even newly empty created ASP 2.0 projects can't debug...
9
by: Tushar | last post by:
Followup-To: microsoft.public.dotnet.general Does anyone know when is this event raised, is it: 1) When the file is created but may not have been closed 2) When the file is created AND it has...
2
by: Nick Hustak | last post by:
Hi, I've been trying to work with the XSDs and ran into a few road blocks. 1. Stored procedures that uses temp tables, i.e. #TempTable. The wizard complains that #TempTable is an invalid...
1
by: Peri | last post by:
Dear All, I am developing 2 applications. The first application will keep on generate a new file in a span of 30 milliseconds with some valid data inside (This code is written in C). The...
0
by: dhvenkat | last post by:
Hi all, Im facing issues in generating the second mail-merge document when the first document created is still open. Its a web based application, and we submit the details for mail-merge after...
0
by: Andrus | last post by:
I created .NET 3.5 SP1 Winforms application setup by pressing publish button in VCSE 2008 SP1 Running created setup.exe in same computer causes error below "Reference in the manifest does not...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.