<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to query Active Directory using SQL Server</title>
	<atom:link href="http://www.calazan.com/querying-active-directory-using-sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.calazan.com/querying-active-directory-using-sql-server/</link>
	<description>Share the Knowledge</description>
	<lastBuildDate>Sun, 29 Aug 2010 19:17:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Clement</title>
		<link>http://www.calazan.com/querying-active-directory-using-sql-server/comment-page-1/#comment-4999</link>
		<dc:creator>Clement</dc:creator>
		<pubDate>Mon, 18 Jan 2010 15:50:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.calazan.com/querying-active-directory-using-sql-server/#comment-4999</guid>
		<description>Hi,

I have the same issue as Abi when I try to query the postOfficeBox : 

SELECT *
FROM OPENROWSET(
&#039;AdsDsoObject&#039;
,&#039;ADSI Flag=0x11;Page Size=10000&#039;
,&#039;SELECT postOfficeBox
,sn FROM
&#039;&#039;LDAP://FOOBAR/DC=FOO,DC=COM&#039;&#039;&#039;)

 Could not convert the data value due to reasons other than sign mismatch or overflow 

Have any idea ?

a+, =)
-=Clement=-</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have the same issue as Abi when I try to query the postOfficeBox : </p>
<p>SELECT *<br />
FROM OPENROWSET(<br />
&#8216;AdsDsoObject&#8217;<br />
,&#8217;ADSI Flag=0&#215;11;Page Size=10000&#8242;<br />
,&#8217;SELECT postOfficeBox<br />
,sn FROM<br />
&#8221;LDAP://FOOBAR/DC=FOO,DC=COM&#8221;&#8217;)</p>
<p> Could not convert the data value due to reasons other than sign mismatch or overflow </p>
<p>Have any idea ?</p>
<p>a+, =)<br />
-=Clement=-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webmaster</title>
		<link>http://www.calazan.com/querying-active-directory-using-sql-server/comment-page-1/#comment-4617</link>
		<dc:creator>webmaster</dc:creator>
		<pubDate>Wed, 30 Dec 2009 01:21:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.calazan.com/querying-active-directory-using-sql-server/#comment-4617</guid>
		<description>Hey Lawrence,

I&#039;ve wondered about modifying Active Directory using an SQL query myself but I haven&#039;t found a way to do it and I&#039;m not sure if it&#039;s even possible.</description>
		<content:encoded><![CDATA[<p>Hey Lawrence,</p>
<p>I&#8217;ve wondered about modifying Active Directory using an SQL query myself but I haven&#8217;t found a way to do it and I&#8217;m not sure if it&#8217;s even possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lawrence</title>
		<link>http://www.calazan.com/querying-active-directory-using-sql-server/comment-page-1/#comment-4610</link>
		<dc:creator>Lawrence</dc:creator>
		<pubDate>Tue, 29 Dec 2009 19:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.calazan.com/querying-active-directory-using-sql-server/#comment-4610</guid>
		<description>Hi, thanks for this info, trying to look for it for ages!

I was wondering, how can I populate a table and then edit the data from Active Directory, so by changing values in a field, I can then update it and Active Directory will be modified, Its so I can manage AD from a website I am building for a school project!

Thanks,

Lawrence</description>
		<content:encoded><![CDATA[<p>Hi, thanks for this info, trying to look for it for ages!</p>
<p>I was wondering, how can I populate a table and then edit the data from Active Directory, so by changing values in a field, I can then update it and Active Directory will be modified, Its so I can manage AD from a website I am building for a school project!</p>
<p>Thanks,</p>
<p>Lawrence</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abi</title>
		<link>http://www.calazan.com/querying-active-directory-using-sql-server/comment-page-1/#comment-3950</link>
		<dc:creator>Abi</dc:creator>
		<pubDate>Mon, 28 Sep 2009 16:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.calazan.com/querying-active-directory-using-sql-server/#comment-3950</guid>
		<description>how do I query other properties such as otherFacsimileTelephoneNumber ...

when I include this in my query I get the error Cannot get the current row value of column &quot;[ADsDSOObject].otherFacsimileTelephoneNumber&quot; from OLE DB provider &quot;ADsDSOObject&quot; for linked server &quot;ADSI&quot;. Could not convert the data value due to reasons other than sign mismatch or overflow.</description>
		<content:encoded><![CDATA[<p>how do I query other properties such as otherFacsimileTelephoneNumber &#8230;</p>
<p>when I include this in my query I get the error Cannot get the current row value of column &#8220;[ADsDSOObject].otherFacsimileTelephoneNumber&#8221; from OLE DB provider &#8220;ADsDSOObject&#8221; for linked server &#8220;ADSI&#8221;. Could not convert the data value due to reasons other than sign mismatch or overflow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webmaster</title>
		<link>http://www.calazan.com/querying-active-directory-using-sql-server/comment-page-1/#comment-3624</link>
		<dc:creator>webmaster</dc:creator>
		<pubDate>Sun, 02 Aug 2009 20:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.calazan.com/querying-active-directory-using-sql-server/#comment-3624</guid>
		<description>Hi Santiago,

I believe you can specify the OU in the FROM like this:

SELECT *
FROM OPENQUERY (ADSI,
‘SELECT displayName, groupType, mail, name, info, whenChanged, whenCreated
FROM ”LDAP://&lt;strong&gt;OU=Marketing&lt;/strong&gt;, DC=domain,DC=com”
WHERE objectClass = ”group”’)

Haven&#039;t tested it though.</description>
		<content:encoded><![CDATA[<p>Hi Santiago,</p>
<p>I believe you can specify the OU in the FROM like this:</p>
<p>SELECT *<br />
FROM OPENQUERY (ADSI,<br />
‘SELECT displayName, groupType, mail, name, info, whenChanged, whenCreated<br />
FROM ”LDAP://<strong>OU=Marketing</strong>, DC=domain,DC=com”<br />
WHERE objectClass = ”group”’)</p>
<p>Haven&#8217;t tested it though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santiago</title>
		<link>http://www.calazan.com/querying-active-directory-using-sql-server/comment-page-1/#comment-3615</link>
		<dc:creator>santiago</dc:creator>
		<pubDate>Thu, 30 Jul 2009 14:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.calazan.com/querying-active-directory-using-sql-server/#comment-3615</guid>
		<description>Hi, i have a question....can i specify an OU in the query?

regards</description>
		<content:encoded><![CDATA[<p>Hi, i have a question&#8230;.can i specify an OU in the query?</p>
<p>regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Schwamberger</title>
		<link>http://www.calazan.com/querying-active-directory-using-sql-server/comment-page-1/#comment-3361</link>
		<dc:creator>Ian Schwamberger</dc:creator>
		<pubDate>Mon, 13 Jul 2009 18:47:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.calazan.com/querying-active-directory-using-sql-server/#comment-3361</guid>
		<description>Use filters to page through results.  See http://msdn.microsoft.com/en-us/library/ms808539.aspx.

You can cause all kinds of problems (especially with Exchange) if you increase the maxPageSize.</description>
		<content:encoded><![CDATA[<p>Use filters to page through results.  See <a href="http://msdn.microsoft.com/en-us/library/ms808539.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms808539.aspx</a>.</p>
<p>You can cause all kinds of problems (especially with Exchange) if you increase the maxPageSize.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webmaster</title>
		<link>http://www.calazan.com/querying-active-directory-using-sql-server/comment-page-1/#comment-725</link>
		<dc:creator>webmaster</dc:creator>
		<pubDate>Sun, 05 Apr 2009 19:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.calazan.com/querying-active-directory-using-sql-server/#comment-725</guid>
		<description>Hi Luke,

It looks like you will need to change the value of the &lt;strong&gt;MaxPageSize&lt;/strong&gt; attribute in Active Directory: 

&lt;em&gt;MaxPageSize - This value controls the maximum number of objects that are returned in a single search result, independent of how large each returned object is. To perform a search where the result might exceed this number of objects, the client must specify the paged search control. This is to group the returned results in groups that are no larger than the MaxPageSize value. To summarize, MaxPageSize controls the number of objects that are returned in a single search result.

Default value: 1,000&lt;/em&gt;

Source: http://support.microsoft.com/default.aspx?scid=kb;en-us;315071&amp;sd=tech</description>
		<content:encoded><![CDATA[<p>Hi Luke,</p>
<p>It looks like you will need to change the value of the <strong>MaxPageSize</strong> attribute in Active Directory: </p>
<p><em>MaxPageSize &#8211; This value controls the maximum number of objects that are returned in a single search result, independent of how large each returned object is. To perform a search where the result might exceed this number of objects, the client must specify the paged search control. This is to group the returned results in groups that are no larger than the MaxPageSize value. To summarize, MaxPageSize controls the number of objects that are returned in a single search result.</p>
<p>Default value: 1,000</em></p>
<p>Source: <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;315071&#038;sd=tech" rel="nofollow">http://support.microsoft.com/default.aspx?scid=kb;en-us;315071&#038;sd=tech</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
