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

Undocumented Funtion: PWDCOMPARE() 1

Status
Not open for further replies.

Creeder

Programmer
Jul 5, 2000
110
MY
Has anyone you this function to compare 2 passwords? Somehow i am not getting it to work properly

eg: SELECT PWDCOMPARE('test','test') should return a 1 which is a success.

Anyone has experience using it? I am using SQL 2000 by the way. Thanks.
 

I've played with PWDCOMPARE and PWDENCRYPT but do not use them in any applications. They are subject to change and using them could result in broken applications when upgrading.

The correct syntax is pwdcompare('text',<encryptedtext>) as in the example below. pwdencrypt is used to encrypt the text string for the second pwdcompare parameter.

print pwdcompare('helloworld', pwdencrypt('helloworld')) Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it and comment if you have time.
NOTE: Reference to the FAQ is part of my signature and is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top