First SQL Server data entry form - InfoPath Dev
in

InfoPath Dev

First SQL Server data entry form

Last post 09-13-2010 01:28 PM by Howard. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-27-2010 11:10 AM

    First SQL Server data entry form

    Good morning INFOPATHdev community. Today I discovered InfoPath 2007 as a possible solution for creating data entry forms to add/delete/change data in a SQL Server 2008 database. Using the database form template, I added a SQL Server connection and then selected a table from my database. I then dragged the "Name" dataField from my data sources list into the box under the Run Query button and then clicked preview. Clicking on Run Query displayed the "Name" field from each of the records in the table. I wanted to make a change to one of the names so I fixed a typo and pressed submit but received the following message:Transaction cannot have multiple recordsets with this cursor type. Change the cursor type, commit the transaction, or close one of the recordsets.What is this message telling me?  Is there a tutorial available for making SQL Server data entry/editing forms?

    Thanks for reading.  

    Howard

     

     

  • 08-27-2010 04:16 PM In reply to

    Re: First SQL Server data entry form

    Hi Howard,

    I know this is not the answer you are looking for, but let's just short-circuit the discussion (and your solution) and jump to the best practice: you should use a Web Service to connect with SQL. Lots of reasons. Here's a blog post with some analysis: http://www.infopathdev.com/blogs/patrick/archive/2010/01/29/infopath-gaps-in-sharepoint-and-sql.aspx. I've replied to other threads too and encourage you to look for those.

    Yours truly,

    Patrick Halstead
    Project Manager at Qdabra
  • 09-09-2010 06:29 AM In reply to

    • guamer
    • Not Ranked
    • Joined on 09-08-2010
    • Posts 1

    Re: First SQL Server data entry form

    I got the same error when submitting to SQL Server. I don't know exactly why, but what fixed this was changing my DSN source from the newer "SQL Server Native Client" to one just using the plain "SQL Server" driver.
    I haven't seen really any SQL Server/Infopath tutorials, though youtube seems to have the most Infopath tutorials in general. For a very basic intro into setting up SQL Server on Infopath, check out this one (based on the Infopath beta):

    DB Journal

    Please let me know if come across any other helpful tutorials.
  • 09-13-2010 01:28 PM In reply to

    Re: First SQL Server data entry form

    Thank you Patrick for that link. I'll read through it to better educate myself on Infopath and SQL Server integration.

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.