<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Connecting Infopath to both SQL and AD.</title><link>https://www.infopathdev.com:443/forums/thread/68485.aspx</link><pubDate>Mon, 18 Jul 2011 12:25:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68485</guid><dc:creator>user007</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68485.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=68485</wfw:commentRss><description>&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Thanks for your help Patrick. I am assuming that WCF would work&amp;nbsp;too, right?&lt;br /&gt;I am using SharePoint and InfoPath 2007. Could I use Visual Studio 2008? Or should it be 2005?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Connecting Infopath to both SQL and AD.</title><link>https://www.infopathdev.com:443/forums/thread/68466.aspx</link><pubDate>Fri, 15 Jul 2011 21:07:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68466</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68466.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=68466</wfw:commentRss><description>&lt;p&gt;I forgot one more option: you can use InfoPath and BCS to get data in and out of SQL. If they are simple tables, should work easily enough. SharePoint List forms work great for that. For more complex forms, you&amp;#39;ll want InfoPath XML-based forms.&lt;/p&gt;</description></item><item><title>Re: Connecting Infopath to both SQL and AD.</title><link>https://www.infopathdev.com:443/forums/thread/68465.aspx</link><pubDate>Fri, 15 Jul 2011 20:05:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68465</guid><dc:creator>user007</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68465.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=68465</wfw:commentRss><description>&lt;p&gt;Is there any other option besides InfoPath to do forms and workflows with SharePoint?&lt;/p&gt;</description></item><item><title>Re: Connecting Infopath to both SQL and AD.</title><link>https://www.infopathdev.com:443/forums/thread/68462.aspx</link><pubDate>Fri, 15 Jul 2011 19:22:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68462</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68462.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=68462</wfw:commentRss><description>&lt;p&gt;Hi 007 and welcome!&lt;/p&gt;
&lt;p&gt;InfoPath out-of-box gives you the username of the person logged into the machine. If all users are logged in to domain accounts, that may be sufficient, but in order to get more info from Active Directory, you will need to a) write some code, or b) use a&amp;nbsp;product like Qdabra&amp;#39;s Active Directory Web Service which lets you pull AD info (like&amp;nbsp;first/last name, emp#, groups, etc.). SharePoint&amp;#39;s UserProfileService also&amp;nbsp;includes first/lastname but doesn&amp;#39;t give you all of the AD properties. &lt;/p&gt;
&lt;p&gt;InfoPath out-of-box lets you link your forms to SQL but we don&amp;#39;t recommend using that because a) you can&amp;#39;t convert forms to be browser later, and b) it creates a tight coupling with your SQL tables which means that changes down the road (inevitable) will create lots of migration headaches. We recommend creating a&amp;nbsp;web service or using a third party Web Service like Qdabra&amp;#39;s DBXL which lets you map all of your XSNs without having to create a separate web service for each. Bonus: it also includes ADWS and is way cheaper than if you had to have someone create a web service from scratch.&lt;/p&gt;
&lt;p&gt;We&amp;#39;re here to help you do what you want, so if you don&amp;#39;t have the ability to use a third party tool, please search the forum. Many people have posted code snippets for how to query AD/SQL. With a Web service in place, you will have a very powerful data entry solution.&lt;/p&gt;
&lt;p&gt;Best of luck,&lt;/p&gt;</description></item><item><title>Connecting Infopath to both SQL and AD.</title><link>https://www.infopathdev.com:443/forums/thread/68456.aspx</link><pubDate>Fri, 15 Jul 2011 18:15:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68456</guid><dc:creator>user007</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68456.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=68456</wfw:commentRss><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I am new to InfoPath. Trying to create a form. &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Need the form to connect both to SQL and AD. &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Based on the username entered, should put some info + Employee Number form SQL. After that based on the Employee Number populate rest of the fields form AD. &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;How do I do this?&lt;/span&gt; 
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>