SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL 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:
  #1  
Old September 27th, 2000, 07:52 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 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
Delete Syntax error...grrrr....

<i><b>Originally posted by : Keith Malatesta (Malatesta@mediaone.net)</b></i><br />I keep getting a syntax error with this delete code:<br /><br /><br /><%<br /><br /> dim conn<br /> dim strQuery<br /> dim rsEvents<br /> dim sqlCmd<br /> <br />set myConnection = server.CreateObject("ADODB.connection")<br /> myConnection.open "DSN=Shoedb;UID=sa;PWD=;DATABASE=storefront"<br /> <br /> set sqlCmd = server.CreateObject("ADODB.Command")<br /> sqlCmd.activeConnection = myConnection<br /> sqlCmd.commandType = 1<br /> sqlCmd.commandText = _<br /> "DELETE * FROM ProductDetail WHERE ProductID = '"& request.form("Product_ID")'"<br /> <br /> set rsEvents = sqlCmd.execute<br /><br /> <br />%><br /><br />You have just deleted, <%=Request.Form("Product_ID")%> <%=Request.Form("Description")%>!<br /><p><a href="http://64.27.72.226/product.asp">Return to Products</a></p><br /><br />Anyone?<br />

Reply With Quote
  #2  
Old September 28th, 2000, 06:42 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 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 : Adam Stevenson (alstevenson@nadev.com)</b></i><br /><br /><br />Could you please post your error messages. I think the error could be in your Delete statement.<br /><br />Sincerely,<br /><br />Adam Stevenson<br />------------<br />Keith Malatesta at 9/27/2000 4:52:29 PM<br /><br />I keep getting a syntax error with this delete code:<br /><br /><br /><%<br /><br /> dim conn<br /> dim strQuery<br /> dim rsEvents<br /> dim sqlCmd<br /> <br />set myConnection = server.CreateObject("ADODB.connection")<br /> myConnection.open "DSN=Shoedb;UID=sa;PWD=;DATABASE=storefront"<br /> <br /> set sqlCmd = server.CreateObject("ADODB.Command")<br /> sqlCmd.activeConnection = myConnection<br /> sqlCmd.commandType = 1<br /> sqlCmd.commandText = _<br /> "DELETE * FROM ProductDetail WHERE ProductID = '"& request.form("Product_ID")'"<br /> <br /> set rsEvents = sqlCmd.execute<br /><br /> <br />%><br /><br />You have just deleted, <%=Request.Form("Product_ID")%>*<%=Request.Form("Description")%>!<br /><p><a href="http://64.27.72.226/product.asp">Return to Products</a></p><br /><br />Anyone?<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Delete Syntax error...grrrr....


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 3 hosted by Hostway
Stay green...Green IT