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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change sql user password from within VB

Status
Not open for further replies.

Mirak

Programmer
Aug 1, 2001
28
0
0
Hi
I want to code a form that will enable the user to change his/her password from with a VB application. I already have the form to allow the user to connect to sql server in the vb application. But now i want to allow the user to change his logon from within the vb application. Is this possible? How can I search for the user's password on sql server?

thanks
 
There are several ways of signing on to SQL Server
1) Everybody uses the same SQL username and password
2) Each user has his/her own SQL username
3) A trusted connection is used where the user's Windows logon name and password are used.

Which one are you using?




Bob Boffin
 
2) Each user has his/her own SQL username and password
I am not using a trusted connection.

 
You won't be able to pull their existing password out of the db. Look up the system stored procedure sp_password in Books Online (aka SQL Server help files). It takes 3 arguments: OldPassword, NewPassword, and Login.

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top