Setting Up a SQL Linked Server

Modified on Sun, 26 Jul at 3:43 AM

Overview

This guide explains how to create a Microsoft SQL Server linked server that connects to the QQube SQL Anywhere 17 database.

The linked server provides access to authorized QQube views under the QQubeFinancials and QQubeUser owners.

Available QQube Views

PrefixPurpose
vf_FACT views.
vd_DIMENSION views, including QuickBooks lists.
vdf_Transaction DIMENSION views, including geography, document attributes, and line attributes.
vl_LOOKUP views used to retrieve lists of values. These are used in the Company Setup data models.

Configure the SQL Anywhere Provider

1. Confirm the Provider Is Available

In SQL Server Management Studio, expand Server Objects > Linked Servers > Providers.

Confirm that the SQL Anywhere OLE DB Provider appears in the provider list.

SQL Server provider list showing the SQL Anywhere OLE DB Provider

2. Register the Provider if It Is Missing

Complete this step only when the SQL Anywhere OLE DB Provider does not appear in the provider list.

  1. Open a Command Prompt using Run as administrator.
  2. Navigate to:
C:\Program Files (x86)\CLEARIFY\QQube Tool\SQL Anywhere 17\BIN64

Run regsvr32 for both provider files:

regsvr32 dboledb17.dll regsvr32 dboledba17.dll

Command Prompt registering the SQL Anywhere OLE DB provider files

3. Enable Allow Inprocess

  1. Right-click SAOLEDB.17.
  2. Select Properties.
  3. Select Allow inprocess.
  4. Click OK.

SQL Server provider properties with Allow inprocess selected

Create the Linked Server

1. Open the New Linked Server Window

  1. In SQL Server Management Studio, expand Server Objects.
  2. Right-click Linked Servers.
  3. Select New Linked Server.

SQL Server Management Studio New Linked Server command

2. Complete the General Page

SettingValue
Linked serverQQUBE
ProviderSQL Anywhere OLE DB Provider 17
Product nameSQL Anywhere
Data sourceQQubeFinancials

Required Data Source Name

The Data source value must be QQubeFinancials. Do not change this name.

SQL Server linked server General settings for the QQube SQL Anywhere database

3. Complete the Security Page

Select Security and enter the required QQube linked-server security settings.

SQL Server linked server Security settings for QQube

Click OK when the configuration is complete.

Verify the Linked Server

Expand the new QQUBE linked server and open the Views folder.

Your account does not have access to the underlying tables or to every database view. Use the authorized views described at the beginning of this guide.

SQL Server linked server tree showing QQube database views

Expected Result

The QQUBE linked server appears in SQL Server Management Studio. Authorized QQubeFinancials and QQubeUser views are available under the linked server's Views folder.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article