Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Access password using SQL query

Status
Not open for further replies.

pslpsl

Programmer
Oct 23, 2002
4
FR
I want to add/modify/delete my Access DB password using an SQL query sent by a Delphi application through ODBC.

The following doesn't work : "ALTER DATABASE PASSWORD new, old".

Does anyone has got an idea to do it ?
Thanks
 
You don't need the comma between
Code:
new
and
Code:
old
(I think).

Also, if there wasn't an old password, you need to include a
Code:
NULL
, i.e.

Code:
ALTER DATABASE PASSWORD new NULL

Hope this helps. [pc2]
 

I have the following error message :

[Microsoft][Pilote ODBC Microsoft Access] Instruction SQL non valide; 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' ou 'UPDATE' attendus.

 

I have the following error message :

[Microsoft][Pilote ODBC Microsoft Access] Instruction SQL not valid; 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE' expected.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top