IBD can store part of the information captured in the form in a relational database. Out of the box, IBD:
Install SQL Server and create a database with a name of your choice. What follows assumes that the database name is ibd. You don't need to explicitly create a table in the database; this will be done later by the application (see below).
First, setup a data source in your application server (or servlet container). With Tomcat, edit the conf/server.xml and add the following resource inside the <Context> element you setup for the IBD application:
<Resource name="jdbc/ibd" auth="Container" type="javax.sql.DataSource"
initialSize="3" maxActive="10" maxIdle="20" maxWait="30000"
driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
poolPreparedStatements="true"
username="sa"
password=""
url="jdbc:microsoft:sqlserver://192.168.0.201:1433;DatabaseName=ibd;SelectMethod=Cursor"/>
Make sure to change the user name, password, IP address (or host name), and database name as appropriate. The name of the resource (jdbc/ibd) must be left unchanged, as the data source is referenced using this name in the code.
Second, install the SQL Server JDBC driver. Download the SQL Server JDBC driver, which is a file named mssqlserver.jar. Place this file in the appropriate directory so the driver is available to your application server. For Tomcat, copy mssqlserver.jar to common/lib.
After doing those changes, you need to restart Tomcat.
To create the contract table, make sure Tomcat is started, and go to the following URL: http://localhost:8080/orbeon/fr/service/custom/iadb/create-table?form=standard-rfp
This will return a web page with the DDL you need to run to create the standard_rfp table in the ibd database. You are responsible for running this DDL as appropriate against the idb database. Replace on the URI standard-rfp by the name of another form to get the DDL of the table corresponding to that form (e.g. form=goods). Note that if the form name contains dashes, they will be replaced by underscores in the table name.
To check that saving to SQL Server works as expected:
Contract/GovernmentLaw/Country in the instance. This element will be automatically mapped to the column GovernmentLaw_Country. Check that the table contains the text you entered in the previous step by running select GovernmentLaw_Country from contract. You should now see the value you entered: