D
dana livni
i'm trying to insert data into a database.
this is what i wrote:
<%@ import namespace="system.data" %>
<%@ import namespace="system.data.oledb" %>
dim objconn as new oledbconnection("provider=microsoft.jet.oledb.4.0;"
& "data source=C:\Inetpub\wwwroot\asp.net\1.mdb")
objconn.open
dim myinsert as new oledbcommand ("INSERT INTO table(company)
VALUES('dana')", objconn)
myinsert.executenonquery
objconn.close
and i get this error - "Operation must use an updateable query."
what am i doing wrong.
this is what i wrote:
<%@ import namespace="system.data" %>
<%@ import namespace="system.data.oledb" %>
dim objconn as new oledbconnection("provider=microsoft.jet.oledb.4.0;"
& "data source=C:\Inetpub\wwwroot\asp.net\1.mdb")
objconn.open
dim myinsert as new oledbcommand ("INSERT INTO table(company)
VALUES('dana')", objconn)
myinsert.executenonquery
objconn.close
and i get this error - "Operation must use an updateable query."
what am i doing wrong.