Configure the OLE DB Provider as a Linked Server Manually
About this task
OPENQUERY
statement.This topic describes how to configure the OLE DB provider as a linked server manually. You can also configure it automatically.
Procedure
- From the Start menu, open the SQL Server Enterprise Manager.
- Select an SQL server, and open the Security folder.
-
Right-click the Linked Servers folder, and select
New Linked Server.
The Linked Server Properties window appears.
- Enter a name for the linked server, such as iHist.
- In the Provider Name field, select Historian OLE DB Provider.
-
In the Data Source field, enter the name of the
Historian server, and then select Provider Options.
The Provider Options window appears.Note:
- Select the Level Zero Only option only if using older versions of SQL server. For better performance while executing small queries, select the Allow in Process option. Clear the option if larger queries are to be executed.
- For configuring the Historian 64-bit OLE DB provider as a linked server, the Allow in Process option is mandatory.
- Select OK.
- If Historian security is enabled, enter a Historian username and password.
- For SQL Server 2008 (32-bit/64-bit), follow these steps:
- Select Security.
- Select the Be made using this security context option.
- Enter a Historian username and password in the Remote Login and With Password fields.
-
Select OK.
The linked server is created.