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
 
Back
Top