Hi there,

I was wondering if it is at all possible to programatically change a
password for an access database using VB.NET? Do I use a specific SQL
command to perform such a task? Thanks in advance.

Nick.

RE: Change password programatically for access database by v-kevy

v-kevy
Tue Sep 07 21:55:26 CDT 2004

Hi Nick,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to change the Access database
password in VB.NET using a SQL statement. If there is any misunderstanding,
please feel free to let me know.

As far as I know, we can use ALTER DATABASE PASSWORD statement to achieve
this. We can put the statement in an OleDbCommand and execute it. For more
information, please check the following links:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k/htm
l/acadvsql.asp
http://support.microsoft.com/?kbid=304915

This statement seems to apply to Access 2000 and later version. HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


Re: Change password programatically for access database by Nak

Nak
Wed Sep 08 03:45:41 CDT 2004

Hi Kevin,

Thanks loads, this appears to be exactly what I'm after! :-)

Nick.

"Kevin Yu [MSFT]" <v-kevy@online.microsoft.com> wrote in message
news:JnofM9UlEHA.2516@cpmsftngxa10.phx.gbl...
> Hi Nick,
>
> First of all, I would like to confirm my understanding of your issue. From
> your description, I understand that you need to change the Access database
> password in VB.NET using a SQL statement. If there is any
> misunderstanding,
> please feel free to let me know.
>
> As far as I know, we can use ALTER DATABASE PASSWORD statement to achieve
> this. We can put the statement in an OleDbCommand and execute it. For more
> information, please check the following links:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k/htm
> l/acadvsql.asp
> http://support.microsoft.com/?kbid=304915
>
> This statement seems to apply to Access 2000 and later version. HTH.
>
> Kevin Yu
> =======
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
>