i have this ado transaction happening in an asp page with 2 sql statements, here's the code:
can this all be done in one stored procedure and still keep the transaction?Code:'set up to move items from cart table into order details table 'begin ado transaction connNav.BeginTrans 'transfer cart items strSQL3 = "INSERT INTO orderDetails (orderRefNum, partNo, quantity, description) " &_ "SELECT '" & intOrdRefNum & "', partNo, quantity, 'none' FROM cart " &_ "WHERE userID = " & userID connNav.Execute(strSQL3) 'empty cart table of items strSQL4 = "DELETE FROM cart WHERE userID = " & userID connNav.Execute(strSQL4) 'end the transaction connNav.CommitTrans





Bookmarks