SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 User Name And Password
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

lokhande.shirish
Starting Member

4 Posts

Posted - 03/07/2007 :  02:35:08  Show Profile  Reply with Quote
Hi,

Can any one tell me how to find the User name and password by using sql statement. I am using sql server 2000. i.e Username = sa and password = abc

shirish

harsh_athalye
Flowing Fount of Yak Knowledge

India
5581 Posts

Posted - 03/07/2007 :  02:39:13  Show Profile  Visit harsh_athalye's Homepage  Click to see harsh_athalye's MSN Messenger address  Send harsh_athalye a Yahoo! Message  Reply with Quote
You can't retrieve SQL Server user's password because it not stored in plaintext format within the system tables.

For user name, you can query master..sysxlogins table.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

Kristen
Test

United Kingdom
22415 Posts

Posted - 03/07/2007 :  02:40:09  Show Profile  Reply with Quote
Passwords are encrypted, so you can't query them.

What's the problem you are trying to solve? For example: has the only person who knows the SA password left? If so there are easy ways around that ...

Kristen
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000