ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 8th, 2003, 01:17 AM
txbakers txbakers is offline
webgeek
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Dallas, TX, USA
Posts: 120 txbakers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 17 sec
Reputation Power: 7
ASP Transactions and MySQL

Has anyone successfully written an ASP page in JScript that implements transactions with a mySQL database?

Please let me know - I'm having difficulty doing this.

Thanks.

Reply With Quote
  #2  
Old September 8th, 2003, 02:40 PM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
What is your problem? We can probably help if you give some more detail.

Reply With Quote
  #3  
Old September 8th, 2003, 02:48 PM
txbakers txbakers is offline
webgeek
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Dallas, TX, USA
Posts: 120 txbakers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 17 sec
Reputation Power: 7
Here's the quick version:

a user fills out an HTML form, presses submit.

The information in the form gets written to three tables. We use three sql insert statements with one ADODB.Command object.

99% of the time all three files get populated. Sometimes only one gets populated, and we never know until the user tries to access data from all three files and no record is returned. (All three files have to be there or else the rs is EOF.)

I thought wrapping the entire process in a transaction might help, but I can't get it to work.

I'm not sure why the other two inserts are not being inserted in those rare instances. There is no common thread (so far) between the failures. I can post a very simple version of the code I'm using for the transaction if that would help.

Thanks for writing back.

Reply With Quote
  #4  
Old September 8th, 2003, 05:18 PM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
Code would help. The code for the inserts might be useful too, on the chance we could find the reason they didn't work.
Question about the failed entries- if you immediately retry the exact same thing, does it work then? Cause it seems you could do a quick check for eof, and if the statement failed, just have the code run it again, until it works. JUst a thought.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > ASP Transactions and MySQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT