Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Update Query.. asp/access db

Reply
Thread Tools

Update Query.. asp/access db

 
 
netje
Guest
Posts: n/a
 
      09-10-2003
Hi,

Does anybody know what this error is about?

____

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable
query.

/app/admin/admin.asp, line 201

_____



many thanks!



wilbert



 
Reply With Quote
 
 
 
 
netje
Guest
Posts: n/a
 
      09-10-2003
sorry forgot this:

some of the code:

____

If u_action <> "add" then



select case u_action

case "insert"

sql = "insert into news (title,body,author,insert_date)"

sql = sql & " values( '" & u_title & "' , '" & u_body & "' , '" & u_author &
"' , #" & u_date & "#)"


case "display"

sql="select * from news where id="&u_id

case "delete"

sql="delete from news where id="&u_id

case "edit"

sql="select * from news where id="&u_id

case "logout"

session("password") = ""

case "update"

u_id=request.form("u_id")

sql = "UPDATE news SET title='" & u_title & "',"

sql = sql & " body='" & u_body & "',"

sql = sql & " insert_date=#" & u_date & "#,"

sql = sql & " author='" & u_author & "'"

sql = sql & " WHERE id="&u_id

case else

sql="select * from news order by insert_date desc "

end select



accessdb="../db/db_sdp.mdb"

cn="driver={Microsoft Access Driver (*.mdb)};"

cn=cn & "dbq=" & server.mappath(accessdb)

Set rs = Server.CreateObject("ADODB.Recordset")

(Line 201) rs.Open sql, cn



I have been working with it, but after changing some small things and moving
to a different server it don't work anymore!

bye Wilbert



 
Reply With Quote
 
 
 
 
rick watkins
Guest
Posts: n/a
 
      09-10-2003
Have you checked if your database on the folder its in have the correct
pemission settings
i.e. read/write access

I think that should solve it for you.


"netje" <> wrote in message
news:3f5ed5de$0$28911$...
> sorry forgot this:
>
> some of the code:
>
> ____
>
> If u_action <> "add" then
>
>
>
> select case u_action
>
> case "insert"
>
> sql = "insert into news (title,body,author,insert_date)"
>
> sql = sql & " values( '" & u_title & "' , '" & u_body & "' , '" & u_author

&
> "' , #" & u_date & "#)"
>
>
> case "display"
>
> sql="select * from news where id="&u_id
>
> case "delete"
>
> sql="delete from news where id="&u_id
>
> case "edit"
>
> sql="select * from news where id="&u_id
>
> case "logout"
>
> session("password") = ""
>
> case "update"
>
> u_id=request.form("u_id")
>
> sql = "UPDATE news SET title='" & u_title & "',"
>
> sql = sql & " body='" & u_body & "',"
>
> sql = sql & " insert_date=#" & u_date & "#,"
>
> sql = sql & " author='" & u_author & "'"
>
> sql = sql & " WHERE id="&u_id
>
> case else
>
> sql="select * from news order by insert_date desc "
>
> end select
>
>
>
> accessdb="../db/db_sdp.mdb"
>
> cn="driver={Microsoft Access Driver (*.mdb)};"
>
> cn=cn & "dbq=" & server.mappath(accessdb)
>
> Set rs = Server.CreateObject("ADODB.Recordset")
>
> (Line 201) rs.Open sql, cn
>
>
>
> I have been working with it, but after changing some small things and

moving
> to a different server it don't work anymore!
>
> bye Wilbert
>
>
>



 
Reply With Quote
 
netje
Guest
Posts: n/a
 
      09-11-2003
Yes, that will be it...

I contacted my hostingprovider.. they have to change that for me..

did'nt now that! i'm used to work on a unix-server...

Bye

Wilbert

"rick watkins" <> schreef in bericht
news:...
> Have you checked if your database on the folder its in have the correct
> pemission settings
> i.e. read/write access
>
> I think that should solve it for you.
>
>
> "netje" <> wrote in message
> news:3f5ed5de$0$28911$...
> > sorry forgot this:
> >
> > some of the code:
> >
> > ____
> >
> > If u_action <> "add" then
> >
> >
> >
> > select case u_action
> >
> > case "insert"
> >
> > sql = "insert into news (title,body,author,insert_date)"
> >
> > sql = sql & " values( '" & u_title & "' , '" & u_body & "' , '" &

u_author
> &
> > "' , #" & u_date & "#)"
> >
> >
> > case "display"
> >
> > sql="select * from news where id="&u_id
> >
> > case "delete"
> >
> > sql="delete from news where id="&u_id
> >
> > case "edit"
> >
> > sql="select * from news where id="&u_id
> >
> > case "logout"
> >
> > session("password") = ""
> >
> > case "update"
> >
> > u_id=request.form("u_id")
> >
> > sql = "UPDATE news SET title='" & u_title & "',"
> >
> > sql = sql & " body='" & u_body & "',"
> >
> > sql = sql & " insert_date=#" & u_date & "#,"
> >
> > sql = sql & " author='" & u_author & "'"
> >
> > sql = sql & " WHERE id="&u_id
> >
> > case else
> >
> > sql="select * from news order by insert_date desc "
> >
> > end select
> >
> >
> >
> > accessdb="../db/db_sdp.mdb"
> >
> > cn="driver={Microsoft Access Driver (*.mdb)};"
> >
> > cn=cn & "dbq=" & server.mappath(accessdb)
> >
> > Set rs = Server.CreateObject("ADODB.Recordset")
> >
> > (Line 201) rs.Open sql, cn
> >
> >
> >
> > I have been working with it, but after changing some small things and

> moving
> > to a different server it don't work anymore!
> >
> > bye Wilbert
> >
> >
> >

>
>



 
Reply With Quote
 
Mario b.
Guest
Posts: n/a
 
      09-12-2003
Hi

Check your web directory security.



"netje" <> wrote in message
news:3f5ed4ba$0$28896$...
> Hi,
>
> Does anybody know what this error is about?
>
> ____
>
> Microsoft OLE DB Provider for ODBC Drivers error '80004005'
> [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable
> query.
>
> /app/admin/admin.asp, line 201
>
> _____
>
>
>
> many thanks!
>
>
>
> wilbert
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update On The Windows Phone 7 Update Update Lawrence D'Oliveiro NZ Computing 2 02-25-2011 08:03 AM
[BUG?] (2) Update database using stored procedure and OleDbDataAdapter.Update joun ASP .Net 5 11-30-2004 06:51 PM
[BUG?] Update database using stored procedure and OleDbDataAdapter.Update joun ASP .Net 9 11-30-2004 04:57 AM
[Vb.net question] how to apply online update function into program (the effect just like Norton system work live update) chan ASP .Net 1 03-04-2004 02:58 PM
Datalist: update a datasource without using select/edit/update Hartmut Schroth ASP .Net 3 12-01-2003 09:54 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57