.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

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 ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old April 30th, 2001, 03:39 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
how do you insert records into multiple tables in one form in sql 7.0 with asp

<i><b>Originally posted by : shai (edredge17@excite.com)</b></i><br /><br />Can somebody tell me how to insert multiple records in multiple table in one form in sequel with asp.

Reply With Quote
  #2  
Old May 1st, 2001, 02:25 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : tim curtin (tcurtin@nhhartford.com)</b></i><br />'multiple data transactions should be held in transaction so that if one fails the whole transaction fails.<br /><br /><%<br /> on error resume next<br /> f1 = request("field1")<br /> f2 = request("field2")<br /> set con=server.createobject("ADODB.Connection")<br /> con.Open "MyDSN"<br /> con.beginTrans<br /> con.execute "Insert Into Table1(f1,f2) values(" & f1 & "," & f2 & ")"<br /> con.execute "Insert Into Table2(f1,f2) values(" & f1 & "," & f2 & ")"<br /> if Err.Number <> 0 then<br /> con.RollBack<br /> con.close<br /> set con = nothing<br /> response.write Err.Description<br /> else<br /> con.CommitTrans<br /> con.close<br /> set con =nothing<br /> response.write "Data inserted successfully."<br /> end if<br /> <br /><br /> <br /><br /><br /><br /><br /><br /><br /><br /><br />%><br /><br /><br />------------<br />shai at 4/30/2001 1:39:48 PM<br /><br /><br />Can somebody tell me how to insert multiple records in multiple table in one form in sequel with asp.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > how do you insert records into multiple tables in one form in sql 7.0 with asp


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