Saving to Sql Server Database

N

Nika

Hello All!

What I need is to save the information when filling a form to the database.
Everywhere it is said that I can do that, but I don't know how.
What I actually do:
-Design new form from data connection, where I show my Sql Server database.
I don't put in type of the connection, but it is "Receive data from
database", and I cannot change it..

-Wizard creates a form with New record and Run query buttons. Run query
works perfect. But not New Query..

Thank you!
 
D

David Dean

If you are creating a browser-enabled form template with InfoPath 2007,
submitting directly to a SQL Server database is not supported.

As a workaround, you can implement a web service with a Submit method that
accepts your form document as an XmlDocument parameter and executes the
necessary SQL or stored procedures to update the database. You can then add a
submit data connection to your form template that submits to this web service.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top