Connecting to SQL Databases

<< Click to Display Table of Contents >>

Navigation:  User Interface Reference > Dashboard Designer > Providing Data >

Connecting to SQL Databases

Dashboard for Desktop > Dashboard Designer > Providing Data > Connecting to SQL Databases

The Dashboard Designer provides the capability to connect to multiple types of SQL databases using the Data Source wizard. This tutorial describes how to establish a connection to any supported database and select the required data.

To connect to an SQL database in the Dashboard Designer, follow the steps below.

1.Click the New Data Source button in the Data Source ribbon tab.

img18472

2.On the first page of the invoked Data Source Wizard dialog, select Database and click Next.

img117932

3.On the next page, select the required data provider and specify the required connection parameters.

img117934

For instance, if you selected the Microsoft SQL Server data provider, the following options should be specified.

oServer name

Specify the name of the MS SQL server to which the connection should be established.

oAuthentication type

Specify the authentication mode of the MS SQL Server. You can choose whether to use Windows authentication or Server authentication.

oUser name

Specify the user name used to authenticate to the MS SQL server.

oPassword

Specify the password used to authenticate to the MS SQL server.

oDatabase

Select the database that contains required data.

4.If you have connected to a database using server authentication, the Data Source wizard allows you to choose whether or not user credentials will be saved.

img118005

Choose the required option and click Next.

5.After you have specified the required connection parameters, click Next and specify how to select data from the database.

img117952

oSelect the Query option and run the Query Builder by clicking the Run Query Builder... button. The Query Builder allows you to choose the required tables/columns visually and passes the resulting SQL query to the SQL String editor. Click Finish to create the data source.

oSelect the Stored Procedure option to select one of the stored procedures from the database.

Click Next.

6.On the final page, you can optionally add query parameters and preview data.

img118003

Click Finish to create the data source.

Copyright (c) 1998-2016 Developer Express Inc. All rights reserved.

Send Feedback on this topic to DevExpress.