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 December 14th, 2000, 11:38 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
error in sql

<i><b>Originally posted by : stephen (profliz@hotmail.com)</b></i><br />my coding:<br /><br />SQL1 = "SELECT m_id, m_email, m_subject, m_numReplies, m_entrydate FROM messages "<br />SQL2 = SQL1 & "WHERE m_reply=-1 ORDER BY m_id DESC;"<br />set rs = Server.CreateObject("ADODB.Recordset")<br />connectme="DSN=feedbackDSN"<br />rs.Open SQL2,connectme ---> line 30<br /><br />error mesg give :<br /><br />Microsoft OLE DB Provider for ODBC Drivers error '80040e10' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. <br /><br />/vote/messagelist.asp, line 30 <br /><br />anyone have any idea what is wrong? plz help<br />

Reply With Quote
  #2  
Old December 20th, 2000, 03:37 AM
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 : darren (darreng@grosvenorent.com)</b></i><br /><br />the error will report as line 30 but is actually the sql statement. do a response.write(sql2) just before line 30 and see hwat you have. this error means you are not matching what sql expects. may need '' around the -1<br /><br />------------<br />stephen at 12/14/2000 9:38:18 PM<br /><br />my coding:<br /><br />SQL1 = "SELECT m_id, m_email, m_subject, m_numReplies, m_entrydate FROM messages "<br />SQL2 = SQL1 & "WHERE m_reply=-1 ORDER BY m_id DESC;"<br />set rs = Server.CreateObject("ADODB.Recordset")<br />connectme="DSN=feedbackDSN"<br />rs.Open SQL2,connectme ---> line 30<br /><br />error mesg give :<br /><br />Microsoft OLE DB Provider for ODBC Drivers error '80040e10' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. <br /><br />/vote/messagelist.asp, line 30 <br /><br />anyone have any idea what is wrong? plz help<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > error in sql


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