How to: Create and Use a Data Connection Library
A Data Connection Library (DCL) in Microsoft Office SharePoint Server 2007 is a library that can contain two different types of data connections: an Office Data Connection (ODC) file or a Universal Data Connection (UDC) file. Microsoft Office InfoPath 2007 uses data connections that conform to the Universal Data Connection (UDC) file schema and typically have either a *.udcx or *.xml file extension. Data sources described by these data connections are stored on the server and can be used in standard form templates and browser-enabled form templates.
Procedures
Uploading data connection files to a Data connection library allows InfoPath form templates to use the data sources described by these files to retrieve and submit information.
To Create a SharePoint Data Connection Library
Browse to an Office SharePoint Server 2007 or Office Forms Server 2007 site on which you have at least Design rights. If you are on the root site, or portal, go to the Document Center or create a new site before proceeding to the next step.
Click Create on the Site Actions menu.
On the Create page, click the Data Connection Library link in the Libraries section.
On the New page, type a name for the library and click the Create button.
Copy the URL of the new library.
To Create a New Data Connection File in InfoPath
Open Office InfoPath 2007 and click Design a Form Template.
On the Design a Form Template dialog box, click Blank and click OK.
On the Tools menu, click Data Connections.
Click the Add button.
In the Data Connection Wizard, click Create a new connection to and Receive data.
Click Next.
Click the type of data source you are connecting to, such as Database, Web service, or SharePoint library or list.
Click Next.
Configure your data connection as needed to retrieve data. Once the Data Connection Wizard is completed, choose this data connection in the Data Connections dialog box.
Click Convert.
On the Convert Data Connection dialog box, enter the URL of the data connection library that you previously copied.
Delete "Forms/AllItems.aspx" in the URL.
Enter a name for the data connection file at the end.
Click OK.
Confirm that the data connection has been converted successfully by examining the Details section of the Data Connections dialog box while the converted data connection is selected.
Browse to the SharePoint data connection library and, if necessary, Check In and Approve the UDC file created.
To Use a Data Connection File in InfoPath
Open Office InfoPath 2007 and click Design a Form Template.
On the Design a Form Template dialog box, click Blank and click OK.
Note
Only Database and Web service connections can be used for main data sources. To create a main data source from one of these types of connections, choose Connection Library instead of Blank and proceed to step 5.
On the Tools menu, click Data Connections.
Click the Add button.
In the Data Connection Wizard, click Search for connections on a Microsoft Office SharePoint Server and click Next.
Select the site where you created a data connection file, and select the data connection.
Click Next.
Continue configuring the data connection as needed for the type of connection you have selected.
When finished, add some controls to the form and Preview the form to ensure that data is returned.
To Manage Data Connection Sites
Open Office InfoPath 2007 and click Design a Form Template.
On the Design a Form Template dialog box, click Blank and click OK.
On the Tools menu, click Data Connections.
Click the Add button.
In the Data Connection Wizard, click Search for connections on a Microsoft Office SharePoint Server and click Next.
Click the Manage Sites button.
On the Manage Sites dialog box, click the Add button.
Enter the URL of the site containing one or more data connection files, and enter a friendly Display name for the site, if desired.
Click OK, then click Close.
You can now select the site from the Site drop-down box to browse the available data connections located on the site.
See Also
Concepts
About Data Connections, Authentication, and Alternate Access Mapping