Re: DAO 3.51

Tech-Archive recommends: Speed Up your PC by fixing your registry




"Rick" <Rick@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0404FCE4-E269-469B-BA03-857915841C93@xxxxxxxxxxxxxxxx
Sure.

DB Creation(DAO):
Set dbLocal = DBEngine.CreateDatabase("C:\WorkDir\MyDB.mdb", dbLangSpanish &
";pwd=Mypwd", dbEncrypt)

--- later ---

DB Connectio(ADO):
MyCnn.Open "Provider=Microsoft.Jet.OLEDB.3.51; Data
Source=C:\WorkDir\MyDB.mdb;User ID =Admin;password=Mypwd"

And the error is that there is a problem with password or User ID.




--

You have not created a database with a password for the default Admin account.
You have created a database with a database password, something which is
independent of the user account.

For your ADO connection, you need to specify the database password, not a user
id and password, something like this:

MyCnn.Open "Provider=Microsoft.Jet.OLEDB.3.51; Data
Source=C:\WorkDir\MyDB.mdb;Jet OLE DB:Database Password=Mypwd"

Note that user accounts are managed in a separate workgroup database (i.e.
system.mdw), and then individual databases can grant various permissions to
various users in that workgroup. There is no sense in which a particular
database has a password for the Admin account.


.



Relevant Pages

  • Re: How to dump schema script to recreate the database.
    ... What is the difference between sybase and IAnywhere? ... inside a copy of the database I made. ... The default admin account is dba, ...
    (comp.databases.sybase)
  • Re: Password Protect SQL SERVER
    ... > By default there is a local NT admin account that is also sa. ... There are some 3rd party tools to encrypt the db but it can be a ... > on google for past posts regarding encryption and sql server for more ... >> in our database is their a way we can stop them from ...
    (microsoft.public.sqlserver.security)
  • RE: DB Permissions
    ... I changed some user information thru Control Panel and ... > I was trying to get my PC to auto log in as Admin whenever I start my PC ... > removed the Admin account from the Welcome screen (which I would like to get ... > plus as an added feature, I can no longer open my database. ...
    (microsoft.public.access.security)
  • Re: Password Protect SQL SERVER
    ... By default there is a local NT admin account that is also sa. ... on to their box as the local admin they are essentially sa. ... SQL Server MVP ... > in our database is their a way we can stop them from ...
    (microsoft.public.sqlserver.security)
  • Security
    ... administrator, then took the Admin account and assigned it to the User ... Now I remove all permissions from the User group. ... access my database without the workgroupfile that was created during this ...
    (microsoft.public.access.security)