Active Server Pages

Moderators: None (Apply to moderate this forum)
Number of threads: 1751
Number of posts: 4473

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
SQL UPDATE Woes.. Posted by aaronjones3593 on 22 Mar 2006 at 4:23 AM
This message was edited by aaronjones3593 at 2006-3-22 6:36:50

When I try the following code, I get an error saying that I must use an "updateable query":

objConn.Open "DSN1"
objRs.Open "UPDATE [Members] SET [Username] = 'Admin1' WHERE [Username] = 'Administrator'", objConn


Any reason for this ?

-( Aaron )-

"Alcohol aint the answer, but atleast you forget the question"


Report
Re: SQL UPDATE Woes.. Posted by weapon__x on 23 Mar 2006 at 12:07 AM
: This message was edited by aaronjones3593 at 2006-3-22 6:36:50

: When I try the following code, I get an error saying that I must use an "updateable query":
:
:
: objConn.Open "DSN1"
: objRs.Open "UPDATE [Members] SET [Username] = 'Admin1' WHERE [Username] = 'Administrator'", objConn
: 

:
: Any reason for this ?
:
: -( Aaron )-
:


try this

objConn.Open "DSN1"
objConn. Execute "UPDATE [Members] SET [Username] = 'Admin1' WHERE [Username] = 'Administrator';"
baboy... baboy...

weaps

Report
Re: SQL UPDATE Woes.. Posted by aaronjones3593 on 23 Mar 2006 at 5:13 AM
: : This message was edited by aaronjones3593 at 2006-3-22 6:36:50

: : When I try the following code, I get an error saying that I must use an "updateable query":
: :
: :
: : objConn.Open "DSN1"
: : objRs.Open "UPDATE [Members] SET [Username] = 'Admin1' WHERE [Username] = 'Administrator'", objConn
: : 

: :
: : Any reason for this ?
: :
: : -( Aaron )-
: :
:
:
: try this
:
: objConn.Open "DSN1"
: objConn. Execute "UPDATE [Members] SET [Username] = 'Admin1' WHERE [Username] = 'Administrator';"
: baboy... baboy...
:
: weaps
:
:

Already tried that approach before posting the problem, sorry...



-( Aaron )-

"Alcohol aint the answer, but atleast you forget the question"

Report
Re: SQL UPDATE Woes.. Posted by weapon__x on 26 Mar 2006 at 9:27 PM
objConn.Open "DSN1"
objConn. Execute "UPDATE [Members] SET [Username] = 'Admin1' WHERE [Username] = 'Administrator';"

you may want to try==>>
objConn.Open "DSN1"
objConn. Execute "UPDATE Members SET Members.Username = 'Admin1' WHERE Members.Username = 'Administrator';"


baboy... baboy...

weaps

Report
Re: SQL UPDATE Woes.. Posted by aaronjones3593 on 28 Mar 2006 at 12:56 AM
: objConn.Open "DSN1"
: objConn. Execute "UPDATE [Members] SET [Username] = 'Admin1' WHERE [Username] = 'Administrator';"
:
: you may want to try==>>
: objConn.Open "DSN1"
: objConn. Execute "UPDATE Members SET Members.Username = 'Admin1' WHERE Members.Username = 'Administrator';"
:
:
: baboy... baboy...
:
: weaps
:
:

nope... :'(



-( Aaron )-

"Alcohol aint the answer, but atleast you forget the question"

Report
Re: SQL UPDATE Woes.. Posted by Manning on 20 Apr 2006 at 11:09 AM
: This message was edited by aaronjones3593 at 2006-3-22 6:36:50

: When I try the following code, I get an error saying that I must use an "updateable query":
:
:
: objConn.Open "DSN1"
: objRs.Open "UPDATE [Members] SET [Username] = 'Admin1' WHERE [Username] = 'Administrator'", objConn
: 

:
: Any reason for this ?


What is your data source? If it's an Access database, you need to make sure the IUSR_MachineName account has write access to the database. If you search on Google, you should find lots of information about the problem.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.