(Showing Draft Content)

Connect to SQL Server

To create a SQL Server data source in Wyn Enterprise - Resource Portal, follow these steps.

  1. On the Resource Portal, navigate to Create (+) > Create Data Source.

  2. Select SQL Server in the data source list on the left or in the icon view on the right.

  3. Fill in the database configuration information for the selected data source.




The name for the data source that you want to specify.


A server name or address.


A port number, the default is 1433.


A user name to connect to the SQL Server database.


A password of the SQL Server user.


Enter the database name or click the drop-down to select the database.

Use Configuration String (Advanced)

Use this option to connect to the data provider through a connection string. The format of the connection string is:Server=myServerAddress; Database=myDataBase; User ID=myUsername; Password=myPassword;In addition, you can use the user context attribute in the string to filter data, in the format "@{User context name}" such as "@{DBName}". See User Context for details. You can add recompile=true, to activate the recompile option in the query. For details refer to Recompile Option.

Use Table/Field Name Mapping

If you check this option, you can either import a CSV file or manually enter the display names for the required tables or fields in the Mapping dialog. In case of the RDBMS databases, you can also import the name mapping information from another database. For more information on mapping table and column names, visit this topic.

* Required fields

  1. Verify the SQL Server connection by clicking Test Connection. If the data source is available, and the credentials are correct, you receive a notification on successful connection.

  2. Click Create after the connection is successful.

    You can view the added data source in the Categories tab of the Resource Portal.

Recompile Option

In the Use Configuration String (Advanced) you can add recompile=true, to activate the recompile option in the query. The connection string will be like this: Server=myServerAddress; Database=myDataBase; User ID=myUsername; Password=myPassword;recompile=true;

You can use this data source to create a semantic model (using a shared data source). The recompile option will make the query run faster.

Similarly, when you update the data source you can add recompile=true to activate this query option in the connection string. After that, you need to update the data source in the existing semantic model.