Data Connection to Microsoft SQL Server

  • Last update:December 16, 2024
  • Overview

    Version

    FineBI Version
    Functional Change

    6.0

    /

    Application Scenario

    This document introduces how to connect to the Microsoft SQL Server database.

    Preparation

    Version/Driver

    Download the corresponding driver package. For details about how to upload the driver package, see Driver Management.

    Supported Database VersionDriver Package Link

    SQL Server 2000

    sqljdbc.zip

    SQL Server 2005

    SQL Server 2008

    SQL Server 2012

    SQL Server 2014

    SQL Server 2016

    (Built-in) Download not required

    Connection Information Collection

    Before connecting the database, you need to collect the following information:

    • IP address and port number of the database server

    • Database name

    • Username and password of the database

    • Schema of the database to be connected

    Connection Procedure

    1. Log in to FineBI as the admin, choose System Management > Data Connection > Data Connection Management, and click New Data Connection, as shown in the following figure.

    iconNote:
    If you are not the admin, you can configure data connections only after the admin assigns you the permission on Data Connection Management. For details, see Data Connection Permissions Overview.

    新建数据集截图.png

    2. Find the Microsoft SQL Server icon, as shown in the following figure.

    图标截图.png

    3. Enter the connection information collected in section "Connection Information Collection". Select Default from the Driver drop-down list as the driver is built-in.

    Schema is available after the database is connected by clicking Click to Connect Database, as shown in the following figure.

    2.png

    iconNote:

    1. To connect to a non-default instance, you can change Data Connection URL in either of two ways:

    • jdbc:sqlserver://IP address;InstanceName=Instance name;DatabaseName=Database name

    • jdbc:sqlserver://IP address\Instance name;DatabaseName=Databasename

    2.  If you use a SQL statement to connect a multi-schema database, you need to prefix the database name with the schema names in the statement, for example, SELECT * FROM [dbo].[asdfg].

    4. Click Test Connection. If the connection is successful, click Save, as shown in the following figure.

    1.png

    Adding Database Tables to FineBI

    Two methods are available to add database tables to FineBI.

    公共数据库新建数据集截图.png

    Notes

    Note on the Decimal Data Type

    If a field in the database is of the decimal type (with one decimal place kept and 0 to the right of the decimal point), the field value will be displayed as an integer directly during the FineBI preview.

    附件列表


    主题: Data Preparation
    Previous
    Next
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    8s后關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy