Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot update database with MTS/Oracle8i??

Status
Not open for further replies.

densorz

Programmer
Nov 28, 2003
3
0
0
NL
I've developed a 3-tier webservice (ASP/COM+/ORACLE) that after some troubles now works fine when firing select statements on the database. However when trying to fire an insert or update statement I get errors. I think it's because of the value assigned to the property MTSTransactionMode in Visual Basic(version 6). What should this value be?

In COM+ I declared for every thread several classes.
MGR class: entrance
DAN class: executing select statements (This works fine!)
DAT class: executing insert and update statements

The DAN-classes have value 3(=UsesTransaction) and the DAT-and MGR-classes have value 2(=RequiresTransaction).


Here are the errors:

If I change MTSTransactionMode for DAT and MGR to 0, 1 or 2:
Code:
Error 00013 : 06-03-2006 16:18:07 
  - Description: addRequest(DAT):   - 'Type mismatch'
  - Line Number: 5

If I change MTSTransactionMode for DAT and MGR to 3:
Code:
Error -2147168246 : 06-03-2006 16:22:28 
  - Description: GetConnection error: 'Provider=OraOLEDB.Oracle;Data Source=demo8;User Id=arnhem90;Password=arnhem90' - 'De nieuwe transactie kan niet worden opgenomen in de lijst voor de opgegeven transactiecoördinator.'
  - Line Number: 50
 
Error 03709 : 06-03-2006 16:22:28 
  - Description: getTabValue: 'De verbinding kan niet worden gebruikt om deze bewerking uit te voeren. De verbinding is gesloten of deze is ongeldig in deze context.'
  - Line Number: 10
 
Error 00091 : 06-03-2006 16:22:28 
  - Description: addRequest(MGR): 'Object variable or With block variable not set'
  - Line Number: 50

Thanks for the help provided!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top