<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Using InfoPath to validate SharePoint list data against an external SQL Server database</title><link>https://www.infopathdev.com:443/forums/thread/99822.aspx</link><pubDate>Tue, 28 Oct 2014 14:58:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99822</guid><dc:creator>Andyscott</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99822.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=99822</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;My company&amp;#39;s business is to service equipment on customers&amp;#39; sites across the country. We service some 30000 devices across some 15000 sites for some 500 customers. Our core systems for these are in the process of being updated - a long project - and we are using SharePoint to address some important business issues in the interim where we could gain some &amp;quot;quick wins&amp;quot;.&lt;/p&gt;&lt;p&gt;As part of this I&amp;#39;ve set up a SharePoint list to track specific issues when the servicing doesn&amp;#39;t go to plan. As records get added to this list we need to validate them: we need to validate who has been assigned to track the issue and we need to validate that the device location details have been entered correctly. For the first of these, I have set up a second SharePoint list with just the details of the 100-or-so people who can &amp;quot;own&amp;quot; issues. For the second, I need to validate against a 30000-row table of valid locations held on SQL Server, and which will change from day to day. &lt;/p&gt;&lt;p&gt;To accomplish this, I have customised the &amp;quot;standard&amp;quot; list entry form using InfoPath (InfoPath 2013). I&amp;#39;ve added a second data connection to the list of issue owners and I can set up the query string and return the owners name in order to validate against that source. I&amp;#39;ve then tired two methods of validating against the external database but I can get neither to work.&lt;/p&gt;&lt;p&gt;The first method was to set up a data connection direct to the table. But there is no way I can see to set the query string to just return one row: instead I have to open the connection to receive all rows and then filter to the row I need. This appears to work in &amp;quot;preview&amp;quot; mode but not when the form is published - I think becasue of the data connection file. I have uploaded the data connection file to SharePoints &amp;quot;data connections&amp;quot; library, and approved it, but it still doesn&amp;#39;t work. (I&amp;#39;m pretty sure this is due to a problem with the stored credentials, and there doesn&amp;#39;t appear to be an option to use the Secure Store Service in the same way as you would for, say, and Excel workbook data connection.)&lt;/p&gt;&lt;p&gt;The second method was to create an External List based on the table. I can query this by setting the query string, and just one row will be returned which is exactly what I need. However, the row count from my table (at 30000) significantly exceeds the 2000 row limit for external lists. So it can work in test but not in production.&lt;/p&gt;&lt;p&gt;I&amp;#39;m sure that there must be a way of overcoming either of these limitations - but I just can&amp;#39;t find it. Does anyone have any suggestions/pointers? &lt;/p&gt;&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>