Creating logins using sql dmo

  • I am using SQL 2000 and VB6.  I have created a program for a user to add logins.  That code works fine except in the user incorrectly types in the windows NT user. 

    Is there a way for me to check to make sure that the name entered is a valid windows NT user before I do the add?

     

  • The only way to check the Valid Windows NT user is through Active Directory.Use Linked server concept to connect your LDAP Directory .

  • I tried to find information on how to use the linked server concept to connect to my LDAP directory but couldn't. 

     

    Do you know where I can get some information on doing this?  Is it very complicated? 

     

    Thanks.

  • Can you not use windows api - Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" _

    (ByVal lpBuffer As String, nSize As Long) As Long to get user name ?!







    **ASCII stupid question, get a stupid ANSI !!!**

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply