The web hosting publication by web hosting users for web hosting users
Update a Host / Editor Login
Search
Article News Host Business Name
DIRECTORY TOP RATING EDITOR REVIEW FORUM SEARCH HOSTING SHOWCASE BECOME AN EDITOR
RECENT NEWS
The Evolution of the IT Specialist
ICANN Decides To Expand Internet
Pingdom Adds Business Monitoring Plan
Apptix Offers Hosted VoIP Products
ARTICLES
Co-location Hosting
Dedicated Servers
Domain Names
E-Commerce / Merchant Accounts / Payment Gateways
Free Web Hosting
General Web Hosting
Hosting Software & Control Panels
Managed Web Hosting
Programming
Reseller Hosting
Running a Web Hosting Business
Search Engine Optimization
Specific Web Hosting Provider or Company
Technical & Security
Useful Website Tools
Virtual Private Servers
Web Design & Content
Website Marketing Campaign
SEARCH ARTICLES
WEBHOST DIRECTORY
By Location


By Category
Application Hosting
Collocation Hosting
Dedicated Servers
Domain Name Registration
Ecommerce Hosting
Free Web Hosting
Reseller Domain Name Registration
Reseller Hosting
Shared Web Hosting
Virtual Private Servers
By Function
Windows Web hosting
PHP Web Hosting
Mysql Web Hosting
ASP Web Hosting
MS SQL Server Web Hosting
Coldfusion Web Hosting
MS FrontPage Web Hosting
Ecommerce Web Hosting
Cheap/Discount Web Hosting
Personal Web Hosting
Domain Name Web Hosting
A-Z Listing
Enter web host domain:




Articles
  You are here : Home » Articles » Technical & Security
Change Password for SQL Server User
Submitted by Larry Anderson on | 185 reads
Change Password for SQL Server User

One of ways to boost security is changing passwords. It is also recommended by most security experts. Query Analyzer is an easy means to change the password on a SQL Server Username, since it easily coordinates changing the password on the database server at the same time as it is changed in the connection string. This approach provides the flexibility to change the password at the most appropriate time for the application.
How? Just connect to the database with Query Analyzer using the SQL Server Username that is being updated and the current password. Then run "sp_password" to change the password.

sp_password [ [ @old = ] 'old_password' , ]
{ [ @new =] 'new_password' }
[ , [ @loginame = ] 'login' ]

Here is a simple example that changes the current password from "currentPSWD" to "newPSWD":

sp_password 'currentPSWD', 'newPSWD'

It is important to use a sturdy password. "newPSWD" is just an example. Next, always test any change like this right away. For a quick test to confirm that the new password is working, close Query Analyzer and then re-connect with the new password. It is critical to have down pat to change the password in your connection string if this SQL Username is used in your code. You are through once the password has been changed and tested with Query Analyzer, update the connection string with the new password and test that everything still works correctly.


ARTICLES | NEWS | DIRECTORY | TOP REVIEWS| TOP RATINGS| FORUM | SEARCH | SHOWCASE | UPDATE A HOST
OUR EDITORS | CONTACT US | ADVERTISING | TERMS OF AGREEMENT
© Copyright 2006 , The Web Hosting Herald. All rights reserved.