Hi i want to query the active directory on windows 2000
I dont mind what method but must be in SQL
and get all the group Names from teh DOMAIN [QC] and Populate a table with the Group names can Someone show me how to do this
I don't know of any way to do it directly from T-SQL. In VB I use the an ADSI interface using GetObject() to access the Active Directory but cannot find GetObject() in T-SQL. T-SQL appears to only support CreateObject() using a sproc. Read up on the OLEDB driver for active directory. This might give you what you need. You can use it in conjunction with ADO.
I tried recently to retrieve even just an NT/2000 user name before, and that cant even be done (unless they are logged on using Windows authentication). I just dont think this information is passed to SQL at any point
Were using QSL 2K
I'm trying to get employee names out of ActiveDirectory and have not totally completed this task yet, but the following has extracted the basics. Maybe it will give you a start.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.