|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Exclusive Connection to Access DatabaseHi,
How do I set the connectionstring to get Exclusive connection to MS Access database. I want to let the user reset the database password. Thanks, Debi "Debi" wrote: Try this:> Hi, > How do I set the connectionstring to get Exclusive connection to MS Access > database. I want to let the user reset the database password. > > Thanks, > Debi Driver={Microsoft Access Driver(*.mdb)};Dbq=DBFilePath.mdb;Exclusive=1;Uid=admin;Pwd=" I would recommend www.connectionstrings.com for any connection string questions you may have, they have an exhaustive list of strings to connect to just about any data source there is. Hope this helps, Keith I'm using oledbconnection, the one you have mentioned is for odbc.
Show quote "KeithM" wrote: > > > "Debi" wrote: > > > Hi, > > How do I set the connectionstring to get Exclusive connection to MS Access > > database. I want to let the user reset the database password. > > > > Thanks, > > Debi > > Try this: > > Driver={Microsoft Access > Driver(*.mdb)};Dbq=DBFilePath.mdb;Exclusive=1;Uid=admin;Pwd=" > > I would recommend www.connectionstrings.com for any connection string > questions you may have, they have an exhaustive list of strings to connect to > just about any data source there is. > > Hope this helps, > > Keith It looks like you will need to set the following parameter:
Jet OLEDB:Connection Control = 1. HTH, Keith Show quote "Debi" wrote: > I'm using oledbconnection, the one you have mentioned is for odbc. > > "KeithM" wrote: > > > > > > > "Debi" wrote: > > > > > Hi, > > > How do I set the connectionstring to get Exclusive connection to MS Access > > > database. I want to let the user reset the database password. > > > > > > Thanks, > > > Debi > > > > Try this: > > > > Driver={Microsoft Access > > Driver(*.mdb)};Dbq=DBFilePath.mdb;Exclusive=1;Uid=admin;Pwd=" > > > > I would recommend www.connectionstrings.com for any connection string > > questions you may have, they have an exhaustive list of strings to connect to > > just about any data source there is. > > > > Hope this helps, > > > > Keith Any idea on where to set it? I put that in connection string and it threw an
error. The sample given in microsoft site shows vb code not .net. Thanks, Debi Show quote "KeithM" wrote: > It looks like you will need to set the following parameter: > > Jet OLEDB:Connection Control = 1. > > HTH, > > Keith > > "Debi" wrote: > > > I'm using oledbconnection, the one you have mentioned is for odbc. > > > > "KeithM" wrote: > > > > > > > > > > > "Debi" wrote: > > > > > > > Hi, > > > > How do I set the connectionstring to get Exclusive connection to MS Access > > > > database. I want to let the user reset the database password. > > > > > > > > Thanks, > > > > Debi > > > > > > Try this: > > > > > > Driver={Microsoft Access > > > Driver(*.mdb)};Dbq=DBFilePath.mdb;Exclusive=1;Uid=admin;Pwd=" > > > > > > I would recommend www.connectionstrings.com for any connection string > > > questions you may have, they have an exhaustive list of strings to connect to > > > just about any data source there is. > > > > > > Hope this helps, > > > > > > Keith Debi,
> Any idea on where to set it? I put that in connection string and it threw I assume that you mean DAO, ADODB or something like that.> an > error. The sample given in microsoft site shows vb code not .net. > Probably the only way to do things as you do now. Do not forget that ADONET is completely based on a disconnected environment. I hope this helps, Cor On Tue, 18 Apr 2006 15:24:01 -0700, Debi <debi@nospam.com> wrote:
¤ Hi, ¤ How do I set the connectionstring to get Exclusive connection to MS Access ¤ database. I want to let the user reset the database password. Try adding "Mode=Share Exclusive;" to your OLEDB connection string. Paul ~~~~ Microsoft MVP (Visual Basic) That worked. Thanks a lot Paul.
Show quote "Paul Clement" wrote: > On Tue, 18 Apr 2006 15:24:01 -0700, Debi <debi@nospam.com> wrote: > > ¤ Hi, > ¤ How do I set the connectionstring to get Exclusive connection to MS Access > ¤ database. I want to let the user reset the database password. > > Try adding "Mode=Share Exclusive;" to your OLEDB connection string. > > > Paul > ~~~~ > Microsoft MVP (Visual Basic) > |
|||||||||||||||||||||||