CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2000
    Posts
    2

    using NT logon information

    Is there a way to extract a decrypted password from the registry using VB? I have gotten the username sucessfully using an API, but I need to get both NT username and password to pass to an ISQL script in order to log into the other server. Any ideas?


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: using NT logon information

    can't you use a "trusted connection" via the /E switch in ISQL?
    That way you don't need username OR password.


  3. #3
    Join Date
    Jan 2000
    Posts
    2

    Re: using NT logon information

    THat would be great, but I need to make sure that the user is allowed to be accessing the data, and only certain NT users are allowed.


  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: using NT logon information

    with SQL server's integrated security mode this shouldn't be a problem.
    Just GRANT or REVOKE the permissions for the given users.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured