Opening a database as readonly

  • Thread starter Thread starter Simon Johnson
  • Start date Start date
S

Simon Johnson

How do I open a OdbcConnection as readonly? The DSN i'm using only supports
readonly access.. Requesting any other type of access causes the program to
throw an exception..

Simon.
 
Greets,

If your OLE DB provider supports it, you may wish to specify "Mode=Deny
Write" in your connection string. using the OdbcConnection object.

Regards,

Joe
 

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

Back
Top