ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP 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 1st, 2003, 08:11 PM
SB7272 SB7272 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 22 SB7272 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy HELP!! Operation must use an updateable query, but its not permissions!!

Hello,

Im at the start of creating an intranet, and am trying to create the login page but I keep getting the following message:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
/_vti_script/Login/html/new.asp, line 15


It seems to be having a problem with this line:
conn.Execute "insert into tblLogin (Name, EmailAddress, Password) values (" _

If you can make it out, my code is as follows:

set RSLogin = conn.Execute("select LoginID, Name from tblLogin where " _
& "EmailAddress = '" & Request.Form("EmailAddress") & "' and " _
& "Password = '" & Request.Form("Password") & "'")
if RSLogin.EOF then
conn.Execute "insert into tblLogin (Name, EmailAddress, Password) values (" _
& "'" & Request.Form("Name") & "', " _
& "'" & Request.Form("EmailAddress") & "', " _
& "'" & Request.Form("Password") & "')"
set RSLogin = conn.Execute("select LoginID from tblLogin where " _
& "EmailAddress = '" & Request.Form("EmailAddress") & "' and " _
& "Password = '" & Request.Form("Password") & "'")



Ive tried sorting out the permissions but that hasnt helped
Id really really really appreciate it if someone could tell me what to do.


Thanks in advance

Reply With Quote
  #2  
Old December 1st, 2003, 08:27 PM
Memnoch's Avatar
Memnoch Memnoch is online now
Unholy Moderator
Click here for more information.
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,879 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 18 h 10 m 33 sec
Reputation Power: 500
My guess is you didn't open the connection in the correct mode, since you aren't calling the open method, just the execute.

Solution

Reply With Quote
  #3  
Old December 1st, 2003, 08:52 PM
SB7272 SB7272 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 22 SB7272 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hello, I really appreciate ur quick reply,
I tried doin that, so my code is now as follows:

Set Conn = Server.CreateObject("ADODB.Connection")

Conn.Mode = 3
Conn.Open "DSN=intrepid;UID=Admin;PWD=ic"

set RSLogin = conn.Execute("select LoginID, Name from tblLogin where " _
& "EmailAddress = '" & Request.Form("EmailAddress") & "' and " _
& "Password = '" & Request.Form("Password") & "'")

but it still doesnt work

If ive done it wrong, or if you have any other suggestions please let me know

Thanks so much

Reply With Quote
  #4  
Old December 1st, 2003, 09:25 PM
justsml justsml is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: london,denver,positano,paris
Posts: 34 justsml User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
try rebooting

hi,
I ran into this once before ... i CHANGED the security and i continued to get the godforesaken message "Operation must use an updateable query." I eventually rebooted my server out of frustration .... and ... whaddaya know!!! - It worked!
__________________
Dan!

Reply With Quote
  #5  
Old December 1st, 2003, 09:47 PM
SB7272 SB7272 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 22 SB7272 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
IT WORKED!!

YOUR A STAR!!!!

THANK U SOO MUCH


Reply With Quote
  #6  
Old December 1st, 2003, 09:54 PM
justsml justsml is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: london,denver,positano,paris
Posts: 34 justsml User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Cool no problem

no problem

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > HELP!! Operation must use an updateable query, but its not permissions!!


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



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





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