Dreaded "Must Use Updateable Query"

E

ewpatton

I'm having trouble using OdbcConnection and OdbcCommand to make
updates to a System database. I can open the database in Access and
make changes, but executing a simple:

INSERT INTO LoginInfo DEFAULT VALUES

fails miserably. I have set Everyone to have all permissions to the
folder that contains the database so there shouldn't be any permission
problems. I remember in regular ASP one had to set the mode to 3, but
that parameter has been dropped in ASP.NET. How do I make changes to
this database?


Evan
 
G

Guest

I'm having trouble using OdbcConnection and OdbcCommand to make
updates to a System database. I can open the database in Access and
make changes, but executing a simple:

INSERT INTO LoginInfo DEFAULT VALUES

fails miserably. I have set Everyone to have all permissions to the
folder that contains the database so there shouldn't be any permission
problems. I remember in regular ASP one had to set the mode to 3, but
that parameter has been dropped in ASP.NET. How do I make changes to
this database?

Hi Evan

did you try to execute that sql in Access? I think Access doesn't
support "default values" clause
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

I'm having trouble using OdbcConnection and OdbcCommand to make
updates to a System database. I can open the database in Access and
make changes, but executing a simple:

INSERT INTO LoginInfo DEFAULT VALUES

fails miserably. I have set Everyone to have all permissions to the
folder that contains the database so there shouldn't be any permission
problems. I remember in regular ASP one had to set the mode to 3, but
that parameter has been dropped in ASP.NET. How do I make changes to
this database?

Have you checked that the mdb file is not write protected?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,169
Latest member
ArturoOlne
Top