|
dear all,
i`ve script to insert new record to my database.
but the result is error :
"Databse/Object Read Only"
i`ve check my database, and its not read only.
then, i`ve change the location of my database, and it`s showed error again :
"RPC server is unavailable"
please help me..
these are the code :
<%response.buffer=true%>
<html>
<body>
<%
`On Error Resume Next
Dim StrConn
Dim StrSQL
Dim Rst
StrConn ="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & server.mappath("database/data.mdb") & ";"
Set Rst=server.CreateObject("ADODB.Recordset")
StrSQL="select * from email"
Rst.open StrSQL,StrConn,1,3
Rst.AddNew
If request.form("Name") <>"" then
Rst("Name")=request.form("Name")
End IF
If request.form("Email1")<>"" then
Rst("email")=request.form("Email1")
End If
Rst.Update
Rst.Close
StrConn.close
Set Rst=Nothing
Set StrConn=Nothing
%>
</body>
</html>
thanks for your help...
|
|
|
Hi,
I think you cannot do anything other than setting the privilages..
Contact your Service provider and ask if you have Read,Write,and execute Permission on the foler..
Hope this helps!
lets
|
|
|
|
|
|
|
|
|
|