Solved

msSql Password Change

Posted on 2006-07-23
2
430 Views
Last Modified: 2010-04-05
hi experts
How i can Change or set MSSQl database Password?
0
Comment
Question by:mahdiparak
2 Comments
 
LVL 4

Accepted Solution

by:
LMuadDIb earned 500 total points
ID: 17163636
how are you connecting to the database? ADO connection?

bascailly all you have do is:

' Connect to the database
' Create the SQL string to change the database password.
 strAlterPassword := "ALTER DATABASE PASSWORD [NewPassword] [OldPassword];";

'  Execute the SQL statement now...


here is an example:
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_21900292.html
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 17170021
In MS SQL Server you don't have password in the same way as Access. You can change user password. It that what you want?
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Magic Software info 18 138
URL for downloading Google Chrome for Win XP 2 182
Delphi and Access based Enumeration 9 70
DBCtrlGrid, Delphi, Scroll 7 26
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question