Click to See Complete Forum and Search --> : cmd.Execute (insertQuery) !!


hspc
March 26th, 2003, 04:18 AM
Hi
I use asp , ado , AccessXP db to make an online registration system.
I created an Insert query in the Access database and call the query like this :

set con=Server.CreateObject("Adodb.Connection")
con.ConnectionString = strCon
con.CursorLocation = 2 'Server
con.Open
.
.
.

set cmd=Server.CreateObject("Adodb.Command")
set cmd.ActiveConnection=con
cmd.CommandText="InsertCustomer"
cmd.CommandType=4'adCmdStoredProc
cmd.Execute ,Array(n,Request("FirstName"),Request("LastName"), Request("Email")


it works fine on localhost .. but when I upload the asp , mdb and try it online i get the error :


Microsoft JET Database Engine error '80004005'
Operation must use an updateable query.
/register/save.asp, line 62

:confused:

can anyone help please ?

eduardo7095
March 28th, 2003, 02:40 PM
This is a simple IIS permissions problem. Make sure the database itself has read/write/modify permissions as well as the directory where the database lives

Hopes This Helps

hspc
March 28th, 2003, 06:02 PM
Thank you..
I've already solved the problem.
and yes ,, it was a problem of permissions.
thank you again.