FactoryTalk Historian SE - How To Configure A Linked Server With PI OLEDB or PI OLEDB Enterprise
FactoryTalk Historian SE - How To Configure A Linked Server With PI OLEDB or PI OLEDB Enterprise
Document ID QA8140
Summary
FactoryTalk Historian SE: How to configure a linked server with PI OLEDB or PI OLEDB
Enterprise
Question
How do I replicate FactoryTalk Historian SE data in Microsoft SQL Server?
Why does the PI OLEDB Linked Server hang when executing a query?
Environment
FactoryTalk Historian Site Edition (SE)
PI OLEDB Provider
PI OLEDB Enterprise
Answer
Using SQL Server’s linked server feature and either QA54766 - FactoryTalk Historian SE
and the OSIsoft PI OLEDB Providers For a configuration procedure, refer to the
attachment.
Related Answers
QA29736 - FactoryTalk Historian SE: PI OLEDB linked server archive table
1. Install the PI OLEDB Provider on the SQL Server computer. The PI OLEDB provider is
not part of the default FactoryTalk Historian SE installation. It must be installed
separately.
To install the PI OLEDB Provider, run Setup.exe from:
<InstallDrive>:\Historian\Redist\Advanced Server
Options\PIDASSetup\OLEDB Provider.
2. Verify that a trust exists for the SQL Server computer. (SQL Server must use a trusted
connection to connect to the FactoryTalk Historian SE server).
If the computer hosting the SQL Server belongs to the same FactoryTalk network
directory as the computer hosting the FactoryTalk Historian SE server, you do
not need to create a trust for the SQL Server computer. The connection to the
FactoryTalk Historian SE server will be made using the credentials of the logged
on FactoryTalk user.
If the computer hosting the SQL Server does not belong to the same FactoryTalk
network directory as the computer hosting the FactoryTalk Historian SE server,
you must create a trust for the SQL Server computer. This can be done in the
Historian System Management Tools (SMT) using the Security > Trusts plug-in.
https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/52642 1/7
11/27/24, 2:00 PM FactoryTalk Historian SE: How to configure a linked server with PI OLEDB or PI OLEDB Enterprise
3. Use the following table to help determine which provider options to Enable
https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/52642 2/7
11/27/24, 2:00 PM FactoryTalk Historian SE: How to configure a linked server with PI OLEDB or PI OLEDB Enterprise
3. General page
Use the following table to determine settings.
Property Recommended Description
Name for the linked server being
Linked Server LINKEDPI
created
The OLEDB provider for the
Provider PI OLEDB Provider linked server. In this case "PI
OLEDB Provider"
Product name of the OLEDB data
Product name PIOLEDB source - unimportant but
shouldn't be blank
Data source <PI Server> Name of PI Data Archive
Provider string Integrated Security=SSPI Initializes OLE DB Provider-
specific properties.
[Required] in order to
use Windows Integrated
Security (Kerberos) :
Integrated Security=SSPI
4. Security page
Recommended setting: Be made using the login's current security context.
This setting uses the Authentication Procedure according to the Protocol
Order configured via the PI SDK Utility --> Connections --> Options.
Windows Security is the recommended option: the connection uses
Kerberos and the connected user's security context is delegated to the PI
Data Archive. The connection may fall back to using PI Trusts or Explicit
Login (with a Default User) depending on the configured Protocol Order and
PI Data Archive security settings.
When using SQL Server Authentication, the identity of the account running
the SQL Server service will be used for all Windows Authentication
connections to PI. The default account NT Service\MSSQLSERVER will
use the local machine credentials and will appear as <Domain>\
<Machine>$ (e.g. SD\SDSQL$). The double-hop scenario and Kerberos
https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/52642 4/7
11/27/24, 2:00 PM FactoryTalk Historian SE: How to configure a linked server with PI OLEDB or PI OLEDB Enterprise
https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/52642 5/7
11/27/24, 2:00 PM FactoryTalk Historian SE: How to configure a linked server with PI OLEDB or PI OLEDB Enterprise
PI OLEDB Provider
Attachments
File
KB01143 - How to configure a linked server with PI OLEDB or PI OLEDB Enterprise.mht
Recently Viewed
https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/52642 6/7
11/27/24, 2:00 PM FactoryTalk Historian SE: How to configure a linked server with PI OLEDB or PI OLEDB Enterprise
DISCLAIMER
This knowledge base web site is intended to provide general technical information on a particular subject or subjects and is not an exhaustive treatment
of such subjects. Accordingly, the information in this web site is not intended to constitute application, design, software or other professional engineering
advice or services. Before making any decision or taking any action, which might affect your equipment, you should consult a qualified professional
advisor.
ROCKWELL AUTOMATION DOES NOT WARRANT THE COMPLETENESS, TIMELINESS OR ACCURACY OF ANY OF THE DATA CONTAINED IN
THIS WEB SITE AND MAY MAKE CHANGES THERETO AT ANY TIME IN ITS SOLE DISCRETION WITHOUT NOTICE. FURTHER, ALL
INFORMATION CONVEYED HEREBY IS PROVIDED TO USERS "AS IS." IN NO EVENT SHALL ROCKWELL BE LIABLE FOR ANY DAMAGES OF
ANY KIND INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS PROFIT OR DAMAGE, EVEN IF ROCKWELL AUTOMATION
HAVE BEEN ADVISED ON THE POSSIBILITY OF SUCH DAMAGES.
ROCKWELL AUTOMATION DISCLAIMS ALL WARRANTIES WHETHER EXPRESSED OR IMPLIED IN RESPECT OF THE INFORMATION
(INCLUDING SOFTWARE) PROVIDED HEREBY, INCLUDING THE IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABILITY, AND NON-INFRINGEMENT. Note that certain jurisdictions do not countenance the exclusion of implied warranties; thus, this
disclaimer may not apply to you.
https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/52642 7/7