mbt masai
 
Welcome !
         

                                
After experiencing a lot of down time, We decided to move this site to CrystalTech.com. CrystalTech.com is powered by only the finest Windows servers providing the best performance, reliability, and value anywhere.

 Problem with Query, ADO Connection.?? HELP

Author Message
sudo88

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 1/10/2010
  • Status: offline
Problem with Query, ADO Connection.?? HELP Sunday, January 10, 2010 9:47 AM (permalink)
0
These 2 Queries will be used to transfer items from the 'Cart' Database table to the 'Orders' table.
Im using 'BeginTrans' and 'CommitTrans', so that when items are copied to 'Orders' table, they will also be deleted from Cart 'table'.

The transaction prevents one step from happening without the other..... Im Getting this error message:

Microsoft VBScript runtime error '800a01a8'
Object required: 'Provider=Microsoft.J'

<%
' Begin A Transaction
MM_conn_STRING.BeginTrans

' Transfer cart to orders table
sqlString = "INSERT INTO Orders (" &_
  "order_id, " &_
  "order_productID, " &_
  "order_quantity, " &_
  "order_userID, " &_
  "order_entrydate, " &_
  "order_status " &_
  ") SELECT " &_
  "cart_id, " &_
  "cart_productID, " &_
  "cart_quantity, " &_
  "cart_userID, " &_
  "NOW(), " &_
  "0 " &_
  "FROM Cart WHERE " &_
  "cart_userID =" & userID
SET RS = Server.CreateObject( "ADODB.Recordset" )
RS.ActiveConnection = MM_Conn_STRING
RS.Open sqlString

' Empty shopping cart
sqlString = "DELETE FROM Cart " &_
"WHERE cart_userID=" & userID
SET RS = Server.CreateObject( "ADODB.Recordset" )
RS.ActiveConnection = MM_Conn_STRING
RS.Open sqlString

' End the transaction
MM_conn_STRING.CommitTrans
%>


All Help is Appreciated, Thanks
#1
    sudo88

    • Total Posts : 2
    • Scores: 0
    • Reward points : 0
    • Joined: 1/10/2010
    • Status: offline
    Re:Problem with Query, ADO Connection.?? HELP Monday, January 11, 2010 3:36 AM (permalink)
    0
    Im using MS Access, with DSN-less connection

    Still having this problem Please HELP.......
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.8
      mbt shoes www.wileywilson.com