PDA

Click to See Complete Forum and Search --> : changing passwords


Nov 12th, 1999, 05:02 AM
I need to build an .exe. This program will search the database for a specific user_login and make that users password=Null.


How would I begin this. I am reletivitly inexerpeiced to Db connections. I know i will have to extablish an ODBC connectioon.

PLeas help

Clunietp
Nov 12th, 1999, 11:20 AM
you could try something like this using ado:

dim cn as new connection
cn.open <connectionstringhere>
cn.execute "update tablenamewithusersandpasswords set password = '' where username = 'bob'"
cn.close

it establishes a connection to your database, executes a SQL statement to set the password to a zero length string/null, and closes the connection.

HTH

Tom