Connecting SharePoint to AS400
To connect SharePoint 2013 with data on an AS400 there are two options available: 1. Connect your BDC to the AS400 system by creating an ODBC connection on your SharePoint servers and then specifying the ODBC DSN in the connection details. 2. On the SQL Server link create a linked server to the AS400 system and then connect the BDC to the SQL server instead.I tried option 1 but I couldn’t get this to work.SQL Server Link
So here are the steps for option 2:- Install the iSeries drivers on the SQL server first. There are different version of the DB2 driver. make sure that you use the iSeries and not the Client version.
- Then create a DSN configuration
Driver Name: “Client Access ODBC Driver (32-bit)”DSN Setup – Tab = “General”Name: <>Description: Leave defaultSystem: <>DSN Setup – Tab = “Server”Update settings (All others leave default):Library List: <>Connection type: set to “Read/Write (all SQL statements allowed)DSN Setup – Tab = “Packages”Leave all settings at default
DSN Setup – Tab = “Performance” —- Reference DSN SettingsClick the “Advanced” button.“Large Objects (LOB) threshold (KB)”: 15360 (should be the default )“Use blocking with a fetch of 1 row”: De-select“Open all cursors as updateable”: De-select“Retrieve extended column information”: De-select“Allow query timeout”: SelectedClick “OK”DSN Setup – Tab = “Performance” —- Update DSN SettingsClick the “Advanced” button.“Large Objects (LOB) threshold (KB)”: 15360 (should be the default)“Use blocking with a fetch of 1 row”: De-select“Open all cursors as updateable”: De-select“Retrieve extended column information”: Selected“Allow query timeout”: SelectedClick “OK”DSN Setup – Tab = “Language”No changesDSN Setup – Tab = “CatalogNo changesDSN Setup – Tab = “Translation”No changesDSN Setup – Tab = “DiagnosticNo changesLinked Server ConfigurationLinked servers can be setup using the SQL Server Enterprise Manager. There are two linked servers; one for reference the other for updating.1.Select the appropriate server from the list 2.Expand the “Security” node 3.Expand the “Linked Servers” node 4.Right-click on the “Linked Servers” node 5.Select “New Linked Server …”Once
“Linked Server Properties – New Linked Server” windowLinked Server: <>Server Type: Select “Other data source”Provider name: “Microsoft OLE DB Provider for ODBC Drivers”Product name: <>Data source: <>Provider String:“Driver={iSeries Access ODBC Driver}; System=<> ; Uid=<>; Pwd=<>; database=<>;”NOTE: The IP address listed in the system parameter must match the IP address entered in the DSN configuration.Location: <>Catalog: <>Security tab:In the “Local server login to remote server login mappings” table, enter the SQL user account to be used on the target database. The “Remote User” and “Remote Password” are to be set to the user name and password used to login and access the data on the AS400. (User: <> PW: <>)Under “For a login not defined in the list above, connections will:”Select “Be made without using a security context”Server Options tab:“Collation Compatible”: De-select“Data Access”: Selected“RPC”: Selected“RPC Out”: Selected“Use Remote Collation”: Selected“Collation Name”: <>“Connection Timeout”: 0“Query Timeout”: 0Once the linked server is in place it’s easy to configure the BDC.
Frequently asked questions
Which integration approach did the author use?
After a direct ODBC approach did not work in the test, the author connected the business data service through a SQL linked server.
Why did the example configure two DSNs?
It used separate reference and update DSNs for performance.
Should the old provider and authentication settings be copied unchanged?
No. Verify supported drivers, secure credentials and current access requirements for your environment.
