Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction.

Posted on 2002-06-28
Last Modified: 2012-05-04

Windows 2000 Server
Visual Basic 6.0
SQL Server2000

That error is thrown withing a Visual Basic component. How to solve it?

Question by:skel
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 7121460
Can you supply more info, example of code?

Accepted Solution

skel earned 0 total points
ID: 7121551
I cannot because I don't know where is the problem and the code is very big. But someone gave me a hint without the need of looking the code. Maybe the SQL statement delays too much, more than the timeout defined for the component in Component Services (in fact, it delays more than 60 sec, which is the default), so that the component services deactivate the component before the SQL query return data to it. I changed that timeout definition but I can test that change tomorrow.


Expert Comment

ID: 9280220
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question