Reading SQL Server Data from a Form Template.... - InfoPath Dev
in

InfoPath Dev

Reading SQL Server Data from a Form Template....

Last post 11-28-2007 05:22 AM by konquistador1. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-27-2007 10:09 AM

    Reading SQL Server Data from a Form Template....

    Hi Guys,

    I designed an Infopath form template. Now i need to populate that form with values from a SQL Server database. Can i acheive this by creating a Data-Connection --> to Receive --> from SQL Server?

    P.S: I was able to map all my 'Infopath Form' columns to 'SQL Server backend' data-Columns.

     

    Thanks

  • 11-27-2007 01:55 PM In reply to

    Re: Reading SQL Server Data from a Form Template....

    Are you using Database Accelerator?  If so you can use EnumDB which there are some tutorials in the Downloads sections.

    You can setup a data connection to SQL directly but you are not able to query this data as you can with a web service.

    Filed under:
  • 11-27-2007 10:30 PM In reply to

    Re: Reading SQL Server Data from a Form Template....

    Hi Konquistador1 and welcome to our forum!

    You can definitely use InfoPath's out of the box functionality to get data from SQL but there are some limitations and complexities. The EnumDB Web Service that Clay mentions has the following benefits:

    -          Speed up data downloads (and reduce amount of data sent from database)

    o   Download just the relevant rows

    o   Download just the columns you want

    -          Smarter filters

    o   Change your filters based on data in your form

    o   Compare values for text, numbers, and dates

    -          Sort results dynamically

    o   Change order of sort using controls in your form

    Are you just trying to populate a dropdown? If so, just set up a receive data connection to SQL. It should only take a few minutes. So long as you don't have a lot of data in the SQL database table, you probably don't need EnumDB. EnumDB was designed for large databases and parameterized queries.

    Cheers!

    Patrick Halstead
    Project Manager at Qdabra
  • 11-28-2007 05:22 AM In reply to

    Re: Reading SQL Server Data from a Form Template....

     

    Hi Patrick, Thanks a Lot for your reply.

    My SQL database is a very small one. What i a trying to do is : take values from different fields(Columns) in a singel row from a SQL database and fill out a Single form.(Which includes dropdown boxes and text boxes, date fields etc.) Could you please elaborate on how i could write a Webservice for this.

    Thanks,

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