Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Transaction in ASP?

Posted on 1999-07-05
Medium Priority
Last Modified: 2010-03-19
If I am tring to do the following Transaction,it's giving me error....

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
Can not start transaction while in firehose mode.

        conn.execute "Update aid set aid=" &myaid
      conn.execute useradsql
      conn.execute descsql
      conn.execute myultimatesql
Please give me sugestion on how to do batch transaction in ASP.
Question by:tonytpark
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

Author Comment

ID: 1096150
Edited text of question.

Author Comment

ID: 1096151
Edited text of question.
LVL 15

Expert Comment

ID: 1096152
Have you thought of writing a stored procedure and then passing useradsql, descsql, myultimatesql as parameters ?

Accepted Solution

Rikke earned 80 total points
ID: 1096153
I have looked i MSDN about firehose and look at this:

"With forward-scrolling, read-only cursors (also known as firehose cursors) against SQL Server, you will not be able to start a new transaction on that connection. This is because the connection is dealing with the cursor and needs to complete what it's doing (i.e. get to the end of the cursor and close it) before continuing."

"...a side affect of the firehose cursor is that it only permits one active recordset per connection"

Use instead a code like (also from MSDN) to avoid the default cursortype adOpenForwardOnly and the default locktype adLockReadOnly :

   Dim cnn1 As New ADODB.Connection
   Dim rs1 As New ADODB.Recordset
   Dim rs2 As New ADODB.Recordset

   strCnn = "DSN=Springhill;uid=sa;pwd=;database=pubs"
   cnn1.Open strCnn
   rs1.Open "Select * from authors", cnn1, adOpenStatic, adLockOptimistic
   rs2.Open "Select * from publishers", cnn1, adOpenStatic,


Expert Comment

ID: 6873238

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.  You'll also find a link there for Experts who wish to participate in the cleanup effort of old and abandoned questions.
Thank you,
Moderator @ Experts Exchange

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
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.

664 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