JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1617
|
Re: How to Get SQL Server Username & pwd
You could just connect using the "Integrated Security" (windows login NT info-based security), and just give the user access to the server as well.
But as far as encrypting the username for the registry or file -- you'd have to use an encryption method that can be reversed, otherwise you couldn't see the password.
If you connect to the server, and the password is rejected, you will receive an error message (although I believe it may actually prompt the user itself for the login info, you'd have to test it out). If it doesn't prompt the user for a new login/password you could just prompt the user in code for it.
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|