Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 AD Quirks
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bholmstrom
Yak Posting Veteran

USA
75 Posts

Posted - 04/05/2013 :  16:26:52  Show Profile  Reply with Quote
Good afternoon, I have a query that runs perfectly except it only works with a /CN=Users entry.

I am trying to a list of the top 500 of regular users.

This works:

SELECT * FROM OPENROWSET('ADSDSOObject', 'adsdatasource;',

'SELECT mail,displayName,title,distinguishedName

FROM ''LDAP://HostDC02/cn=users, DC=rfs, DC=com'' ')

This Fails:

SELECT * FROM OPENROWSET('ADSDSOObject', 'adsdatasource;',

'SELECT mail,displayName,title,distinguishedName

FROM ''LDAP://HostDC02, DC=rfs, DC=com'' ')

Any thoughts would be appreciated, have a great weekend

Bryan Holmstrom
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000